Explorar el Código

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

tags/v0.99.beta14
Sam Hocevar sam hace 20 años
padre
commit
c1ed04f470
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      test/export.c

+ 1
- 1
test/export.c Ver fichero

@@ -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);


Cargando…
Cancelar
Guardar