Changeset 1351


Ignore:
Timestamp:
11/12/06 10:46:10 (7 years ago)
Author:
sam
Message:
  • Fix infinite loop due to signed/unsigned mistake.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/swallow.c

    r1350 r1351  
    2929    static caca_display_t *dp; 
    3030    unsigned char *buf[2]; 
    31     unsigned long int bytes[2], total[2]; 
     31    long int bytes[2], total[2]; 
    3232    FILE *f[2]; 
    3333    int w, h, i; 
     
    8787                total[i] += 128; 
    8888            } 
     89            else 
     90            { 
     91                fprintf(stderr, "%s: corrupted input\n", argv[0]); 
     92                return -1; 
     93            } 
    8994        } 
    9095    } 
Note: See TracChangeset for help on using the changeset viewer.