summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2016-01-10 14:31:28 +0100
committerPali Rohár <pali.rohar@gmail.com>2016-01-10 14:31:28 +0100
commitb48b9b558c89783f812e6afbcdecb9d2a2153ad4 (patch)
treeaa6a2ecd90b3ecbc6022cf84ba2c03c0670f6da6
parentb7f80de25d701ebbfbcb03ac73c2bb4de0979d90 (diff)
download0xFFFF-b48b9b558c89783f812e6afbcdecb9d2a2153ad4.tar.bz2
fiasco: Remove wrong checks for 'name' and 'swver'
Members 'name' and 'swver' of fiasco are arrays, not pointers
-rw-r--r--src/fiasco.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fiasco.c b/src/fiasco.c
index ba6d262..2d5a253 100644
--- a/src/fiasco.c
+++ b/src/fiasco.c
@@ -289,10 +289,10 @@ int fiasco_write_to_file(struct fiasco * fiasco, const char * file) {
if ( ! fiasco->first )
FIASCO_WRITE_ERROR(file, fd, "Nothing to write");
- if ( fiasco->name && strlen(fiasco->name)+1 > UINT8_MAX )
+ if ( strlen(fiasco->name)+1 > UINT8_MAX )
FIASCO_WRITE_ERROR(file, fd, "Fiasco name string is too long");
- if ( fiasco->swver && strlen(fiasco->swver)+1 > UINT8_MAX )
+ if ( strlen(fiasco->swver)+1 > UINT8_MAX )
FIASCO_WRITE_ERROR(file, fd, "SW version string is too long");
if ( ! simulate ) {