Browse Source

* Do not write the trailing \0 when exporting data.

tags/v0.99.beta14
Sam Hocevar sam 19 years ago
parent
commit
c1ed04f470
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test/export.c

+ 1
- 1
test/export.c View File

@@ -99,7 +99,7 @@ int main(int argc, char *argv[])
cucul_putstr(qq, WIDTH / 2 - 7, HEIGHT / 2, " LIBCACA ");

buffer = cucul_export(qq, format);
fwrite(buffer->buffer, buffer->size, 1, stdout);
fwrite(buffer->buffer, buffer->size - 1, 1, stdout);
cucul_free(buffer);

cucul_end(qq);


Loading…
Cancel
Save