fiasco: Remove wrong checks for 'name' and 'swver'

Members 'name' and 'swver' of fiasco are arrays, not pointers
This commit is contained in:
Pali Rohár committed 2016-01-10 14:31:28 +01:00
1 parent b7f80de25d
commit b48b9b558c
1 file changed
+2 -2
+2 -2
View File
@@ -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 ) {