summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2016-06-10 12:09:49 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2016-06-10 12:09:49 +0000
commite32b5b1a6646e68cef10af0c9184b184892007dc (patch)
tree5f6facb1842644c9cdac0a2af3455e8a06670383
parent843f609b38ca8677a08fe0412e1f85ddad10c524 (diff)
& expands to the maximum amount of needed space; fix comment.
Pointed out by Frank Schoep, thanks!
-rw-r--r--usr.sbin/httpd/httpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/httpd/httpd.c b/usr.sbin/httpd/httpd.c
index 37a2ea8edd6..fae7c53ad84 100644
--- a/usr.sbin/httpd/httpd.c
+++ b/usr.sbin/httpd/httpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: httpd.c,v 1.55 2016/05/22 19:19:21 jung Exp $ */
+/* $OpenBSD: httpd.c,v 1.56 2016/06/10 12:09:48 florian Exp $ */
/*
* Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
@@ -744,7 +744,7 @@ escape_html(const char* src)
{
char *dp, *dst;
- /* We need 5 times the memory if every letter is "<" or ">". */
+ /* We need 5 times the memory if every letter is "&" */
if ((dst = calloc(5, strlen(src) + 1)) == NULL)
return NULL;