X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/3332d5c33b1aa5a376cf61cafaf8ffecf7789903..a8dad3d5bafadb9bca3335952462f05192a5059c:/emufs_gui/viewer.c?ds=sidebyside diff --git a/emufs_gui/viewer.c b/emufs_gui/viewer.c index 8657d83..bcae4bd 100644 --- a/emufs_gui/viewer.c +++ b/emufs_gui/viewer.c @@ -4,6 +4,7 @@ #include "articulos.h" #include "facturas.h" #include "gui.h" +#include "common.h" /* Se encarga de reemplazar los \0 un caracter visual, y segurar un \0 al final */ static char *procesar_registro_articulo_tipo3(EMUFS *emu, char *ptr, EMUFS_REG_SIZE *size, int *pos_actual, int *ancho); @@ -854,7 +855,7 @@ char *procesar_registro_factura_tipo1(EMUFS *emu, char *ptr, EMUFS_REG_SIZE *siz } j = 0; PERR("Voy por la data"); - while (j < (tam_data-cant_items*sizeof(t_Item)-1)) { + while (j < (tam_data-cant_items*sizeof(t_Item))) { if (*tmp == '\0') { if (ant == (*tmp)){ (*tmp1) = '.';