- strcpy(fact.emision, prop = xml_get_prop(node, "FechaEmisión")); xmlFree(prop);
- strcpy(fact.vencimiento, prop = xml_get_prop(node, "FechaVto")); xmlFree(prop);
- strcpy(fact.estado, prop = xml_get_prop(node, "Estado")); xmlFree(prop);
- strcpy(fact.fp, prop = xml_get_prop(node, "FP")); xmlFree(prop);
- strcpy(fact.ctacte, prop = xml_get_prop(node, "NroCtaCte")); xmlFree(prop);
- strcpy(fact.cheque, prop = xml_get_prop(node, "NroCheque")); xmlFree(prop);
+ strncpy(fact.emision, prop = xml_get_prop(node, "FechaEmisión"), 8); xmlFree(prop);
+ fact.emision[8] = '\0';
+ strncpy(fact.vencimiento, prop = xml_get_prop(node, "FechaVto"), 8); xmlFree(prop);
+ fact.vencimiento[8] = '\0';
+ strncpy(fact.estado, prop = xml_get_prop(node, "Estado"), 2); xmlFree(prop);
+ fact.estado[2] = '\0';
+ strncpy(fact.fp, prop = xml_get_prop(node, "FP"), 2); xmlFree(prop);
+ fact.fp[2] = '\0';
+ strncpy(fact.ctacte, prop = xml_get_prop(node, "NroCtaCte"), 5); xmlFree(prop);
+ fact.ctacte[5] = '\0';
+ strncpy(fact.cheque, prop = xml_get_prop(node, "NroCheque"), 18); xmlFree(prop);
+ fact.cheque[18] = '\0';