Browse Source

* Fix a bug in caca_export_string

tags/v0.99.beta17
Nicolas Vion nico 16 years ago
parent
commit
905959d37e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      caca-php/php_caca.c

+ 3
- 0
caca-php/php_caca.c View File

@@ -1259,6 +1259,9 @@ PHP_FUNCTION(caca_export_string) {
void *buffer;
size_t len;
buffer = caca_export_memory(canvas, type, &len);
if (!buffer) {
RETURN_FALSE;
}
return_value->type = IS_STRING;
return_value->value.str.len = len;
return_value->value.str.val = emalloc(len);


Loading…
Cancel
Save