summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-05-19 21:07:27 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2022-05-19 21:07:27 +0200
commit3cdb30ba6da95ddb31bd486a2ecb3821eedca6f7 (patch)
tree1e4f8c895752c33b1d09f07a23d8bbefee210518 /lib.c
parentučit se grem nemščino (diff)
downloadprijave-master.tar
prijave-master.tar.gz
prijave-master.tar.bz2
prijave-master.tar.lz
prijave-master.tar.xz
prijave-master.tar.zst
prijave-master.zip
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 0df787d..207cc7f 100644
--- a/lib.c
+++ b/lib.c
@@ -37,7 +37,7 @@ __attribute__((unused)) static int urldecode (char * o, const char * i /* o must
return 1;
}
static char * htmlspecialchars (const char * i) { /* remember to free the output */
- if (!i)
+ if (!i) // output will not be longer than strlen(i)*6
return NULL;
size_t s = 128;
char * o = malloc(s);