Package: vgrabbj
Version: 0.9.6-2
Severity: important
Tags: patch
Call to realloc needs one more byte to allocate '\0' character.
*** vgrabbj-0.9.6/v_writer.c 2004-01-01 19:57:37.000000000 +0100
--- vgrabbj-tunned/v_writer.c 2006-05-12 18:30:15.000000000 +0200
*************** void write_image(struct vconfig *vconf)
*** 194,196 ****
}
! vconf->arch->filename=strcpy(realloc(vconf->arch->filename, strlen(ts)),ts);
v_error(vconf, LOG_DEBUG, "Unlinked old arch-file, realocated new one (%s)", vconf->arch->filename);
--- 194,196 ----
}
! vconf->arch->filename=strcpy(realloc(vconf->arch->filename, strlen(ts)+1),ts);
v_error(vconf, LOG_DEBUG, "Unlinked old arch-file, realocated new one (%s)", vconf->arch->filename);