# HG changeset patch # User Christian Hammond # Date 1073286512 0 # Node ID 3bdfb4308d10b126e4d991e1ae00efa0abfa0599 # Parent 07dc83303503d7ff5b4dd1fb74d9696b0398d490 [gaim-migrate @ 8682] Fix an off-by-one in a malloc in gaim_quotedp_decode. Thanks shx :) committer: Tailor Script diff -r 07dc83303503 -r 3bdfb4308d10 src/util.c --- a/src/util.c Mon Jan 05 07:03:56 2004 +0000 +++ b/src/util.c Mon Jan 05 07:08:32 2004 +0000 @@ -252,7 +252,7 @@ { char *p, *n, *new; - n = new = g_malloc(strlen (str)); + n = new = g_malloc(strlen (str) + 1); for (p = (char *)str; *p; p++, n++) { if (*p == '=') {