Changeset 1336


Ignore:
Timestamp:
11/11/06 13:11:20 (7 years ago)
Author:
sam
Message:
  • Allow to resize canvases back to (0,0).
File:
1 edited

Legend:

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

    r1334 r1336  
    260260                                      new_size * sizeof(uint32_t)); 
    261261            cv->allattrs[f] = realloc(cv->allattrs[f], 
    262                                      new_size * sizeof(uint32_t)); 
    263             if(!cv->allchars[f] || !cv->allattrs[f]) 
     262                                      new_size * sizeof(uint32_t)); 
     263            if(new_size && (!cv->allchars[f] || !cv->allattrs[f])) 
    264264            { 
    265265#if defined(HAVE_ERRNO_H) 
     
    354354                                      new_size * sizeof(uint32_t)); 
    355355            cv->allattrs[f] = realloc(cv->allattrs[f], 
    356                                      new_size * sizeof(uint32_t)); 
    357             if(!cv->allchars[f] || !cv->allattrs[f]) 
     356                                      new_size * sizeof(uint32_t)); 
     357            if(new_size && (!cv->allchars[f] || !cv->allattrs[f])) 
    358358            { 
    359359#if defined(HAVE_ERRNO_H) 
Note: See TracChangeset for help on using the changeset viewer.