Browse Source

Fix limits settings in area export

tags/v0.99.beta17
Pascal Terjan pterjan 15 years ago
parent
commit
ac9b1074b4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      caca/codec/export.c

+ 1
- 1
caca/codec/export.c View File

@@ -146,7 +146,7 @@ void *caca_export_area_to_memory(caca_canvas_t const *cv, int x, int y, int w,
void *ret;

if(w < 0 || h < 0 || x < 0 || y < 0
|| x + w >= cv->width || y + h >= cv->height)
|| x + w > cv->width || y + h > cv->height)
{
seterrno(EINVAL);
return NULL;


Loading…
Cancel
Save