From 06d3f565191d211da4d5b7c14adf4cd97251cd69 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Fri, 19 Dec 2003 17:27:39 +0000 Subject: [project @ 2003-12-19 17:27:39 by bursa] Fix buffer overflow. svn path=/import/netsurf/; revision=436 --- riscos/about.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/riscos/about.c b/riscos/about.c index 32cc625c9..09e9f7e7b 100644 --- a/riscos/about.c +++ b/riscos/about.c @@ -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); -- cgit v1.2.3