summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sys/sys_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/sys_unix.c b/src/sys/sys_unix.c
index 1ed2dfcf..f29ddd07 100644
--- a/src/sys/sys_unix.c
+++ b/src/sys/sys_unix.c
@@ -116,7 +116,7 @@ qboolean Sys_RandomBytes( byte *string, int len )
if( !fp )
return qfalse;
- if( !fread( string, sizeof( byte ), len, fp ) )
+ if( fread( string, sizeof( byte ), len, fp ) != len )
{
fclose( fp );
return qfalse;