[BACK]Return to headers.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / aucat

Diff for /src/usr.bin/aucat/Attic/headers.c between version 1.16 and 1.17

version 1.16, 2010/05/27 06:17:04 version 1.17, 2010/06/05 16:52:28
Line 186 
Line 186 
                 return 0;                  return 0;
         }          }
         rsize = letoh32(riff.size);          rsize = letoh32(riff.size);
         while (pos + sizeof(struct wavchunk) <= rsize) {          for (;;) {
                   if (pos + sizeof(struct wavchunk) > rsize) {
                           warnx("missing data chunk");
                           return 0;
                   }
                 if (read(fd, &chunk, sizeof(chunk)) != sizeof(chunk)) {                  if (read(fd, &chunk, sizeof(chunk)) != sizeof(chunk)) {
                         warn("wav_readhdr: chunk");                          warn("wav_readhdr: chunk");
                         return 0;                          return 0;

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17