(*ancho) = (*size);
}
memset(tmp1, '.', (*size)-(tmp1-salida));
- salida[*size-1] = '\0';
+ salida[*size-2] = '\0';
return salida;
}
(*size) = (*size)-sizeof(unsigned int)*cant_header*3+3*cant_header*10+1;
memset(tmp1, '.', (*size)-(tmp1-salida));
free(ptr);
- salida[*size-1] = '\0';
+ salida[*size-2] = '\0';
return salida;
}
}
j = 0;
PERR("Voy por la data");
- while (j < (tam_data-cant_items*sizeof(t_Item))) {
+ while (j < (tam_data-cant_items*sizeof(t_Item)-1)) {
if (*tmp == '\0') {
if (ant == (*tmp)){
(*tmp1) = '.';