Changeset 988


Ignore:
Timestamp:
May 26, 2006, 9:01:10 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • Fixed an out of bounds bug in cucul_blit().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/canvas.c

    r982 r988  
    231231    endj = (y + src->height >= dst->height) ? dst->height - y : src->height;
    232232
    233     if(starti >= endi || startj >= endj)
     233    if((unsigned int)starti > src->width || (unsigned int)startj > src->height
     234        || starti >= endi || startj >= endj)
    234235        return 0;
    235236
Note: See TracChangeset for help on using the changeset viewer.