]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
This was writing a null one space to the right, outside of the malloc'd buffer. On...
authorWilliam King <william.king@quentustech.com>
Sat, 18 May 2013 20:38:24 +0000 (13:38 -0700)
committerWilliam King <william.king@quentustech.com>
Sat, 18 May 2013 20:38:24 +0000 (13:38 -0700)
src/switch_utils.c

index d54fabaa06c8255a32a6f48ff5e8dbf7d66444d2..7cec27e2047edf3200ffa7194caf27ab9afb1b45 100644 (file)
@@ -185,8 +185,6 @@ SWITCH_DECLARE(char *) switch_find_parameter(const char *str, const char *param,
                                r = malloc(mlen);
                        }
 
-                       *(r + mlen) = '\0';
-
                        switch_snprintf(r, mlen, "%s", ptr);
 
                        break;