[project @ 2003-12-19 17:27:39 by bursa]

Fix buffer overflow.

svn path=/import/netsurf/; revision=436
This commit is contained in:
James Bursa 2003-12-19 17:27:39 +00:00
parent 4c80a24364
commit 06d3f56519

View File

@ -88,8 +88,8 @@ void about_create(void) {
abt->plugd = 0;
/* Page header */
buf = xcalloc(strlen(pabouthdr) + 20, sizeof(char));
sprintf(buf, pabouthdr, netsurf_version);
buf = xcalloc(strlen(pabouthdr) + 40, sizeof(char));
snprintf(buf, strlen(pabouthdr) + 40, pabouthdr, netsurf_version);
abt->header = xstrdup(buf);
xfree(buf);