mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-11 05:19:18 +03:00
[project @ 2003-12-19 17:27:39 by bursa]
Fix buffer overflow. svn path=/import/netsurf/; revision=436
This commit is contained in:
parent
4c80a24364
commit
06d3f56519
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user