]> 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:39:12 +0000 (13:39 -0700)
src/switch_utils.c

index efbc3354867749e2652627a05419e4e8c85490ae..2141369c62a5d1d4fe3859f229e3a476b817ba89 100644 (file)
@@ -174,8 +174,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;