openbsd-ports/www/clearsilver/patches/patch-cgi_html_c
okan e28524993a - update to 0.10.5
- more str* and 64bit fixes
- update license marker

ok markus (MAINTAINER)
2008-11-11 19:58:15 +00:00

13 lines
442 B
Plaintext

$OpenBSD: patch-cgi_html_c,v 1.3 2008/11/11 19:58:15 okan Exp $
--- cgi/html.c.orig Thu Oct 19 19:26:35 2006
+++ cgi/html.c Thu Jun 26 13:42:32 2008
@@ -392,7 +392,7 @@ static NEOERR *split_and_convert (const char *src, int
"Unable to allocate memory to convert url");
break;
}
- strcpy(url, "http://");
+ strlcpy(url, "http://", url_len + 1);
strncat(url, src + x, parts[i].end - x - suffix);
}
else