- if (reg.location != EMUFS_NOT_FOUND) {
- count++;
- tmp = realloc(tmp, count);
- tmp[count-1] = reg.id_reg;
- fprintf(stderr, "Nuevo registro de id = %lu\n", reg.id_reg);
- }
+ tmp = realloc(tmp, count*sizeof(EMUFS_REG_ID));
+ tmp[count-1] = reg.id_reg;