Clean up a couple return value checks.

This commit is contained in:
Justin Maggard
2014-04-07 14:20:50 -07:00
parent 27eae53584
commit bc43d45964
4 changed files with 8 additions and 8 deletions

View File

@ -155,7 +155,7 @@ is_tivo_file(const char *path)
fd = open(path, O_RDONLY);
if( !fd )
return 0;
if( read(fd, buf, 5) < 0 )
if( read(fd, buf, 5) < 5 )
buf[0] = 'X';
close(fd);