From b48b9b558c89783f812e6afbcdecb9d2a2153ad4 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sun, 10 Jan 2016 14:31:28 +0100 Subject: fiasco: Remove wrong checks for 'name' and 'swver' Members 'name' and 'swver' of fiasco are arrays, not pointers --- src/fiasco.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fiasco.c') 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 ) { -- cgit v1.2.3