Correct size check.
This commit is contained in:
parent
c8857c0786
commit
779f4d0019
|
@ -168,7 +168,7 @@ static lnk_string* load_string(int fd, int unicode)
|
|||
r = read( fd, &size, sizeof size );
|
||||
if (r != sizeof size)
|
||||
return NULL;
|
||||
if (size < sizeof size)
|
||||
if ( size == 0 )
|
||||
return NULL;
|
||||
|
||||
bytesize = size;
|
||||
|
|
Loading…
Reference in New Issue