X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/fd6fd64c670641da85e91b3e4c9416bc18ad49e6..f7ab25b7a02d1930ce9333f5604ecc6c124d122b:/emufs_gui/registros.c?ds=inline diff --git a/emufs_gui/registros.c b/emufs_gui/registros.c index 2dde456..e08df56 100644 --- a/emufs_gui/registros.c +++ b/emufs_gui/registros.c @@ -85,11 +85,8 @@ void ver_registros(WINDOW *padre, int w, int h) indices_actual = 0; if (indices) { - fprintf(stderr, "LEO REGISTRO %lu\n", indices[indices_actual]); data = (char *)fp->leer_registro_raw(fp, indices[indices_actual], &size, &pos_actual); - fprintf(stderr, "Data leida %p (%s)\n",data, data); data = procesar(fp, data, &size, &pos_actual, &ancho_registro); - fprintf(stderr, "Tamanio = %lu\n", size); } @@ -306,7 +303,7 @@ char *procesar_registro_articulo_tipo3(EMUFS *emu, char *ptr, EMUFS_REG_SIZE *si (*ancho) = (*size); } memset(tmp1, '.', (*size)-(tmp1-salida)); - salida[*size] = '\0'; + salida[*size-1] = '\0'; return salida; }