From bc29d9f28bde2fe0f7a77f7726a24c8a148b4463 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 10 Apr 2006 22:03:22 +0000 Subject: [PATCH] * Fixed test/export that was not printing the last character of the file. --- test/export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/export.c b/test/export.c index 758de8e..f0b824f 100644 --- a/test/export.c +++ b/test/export.c @@ -91,7 +91,7 @@ int main(int argc, char *argv[]) cucul_putstr(qq, WIDTH / 2 - 7, HEIGHT / 2, " LIBCACA "); buffer = cucul_create_export(qq, argv[1]); - fwrite(buffer->buffer, buffer->size - 1, 1, stdout); + fwrite(buffer->buffer, buffer->size, 1, stdout); cucul_free_export(buffer); cucul_free(qq);