From: Mark Michelson Date: Tue, 8 Jan 2013 15:51:27 +0000 (+0000) Subject: Fix incorrect pointer manipulation that caused mixmonitor recording to fail. X-Git-Tag: 10.12.0-digiumphones-rc2~3^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45b5a9b572d223f7e396ec81bee1bd4c55646d61;p=thirdparty%2Fasterisk.git Fix incorrect pointer manipulation that caused mixmonitor recording to fail. (closes ASTERISK-20834) reported by Philippe Lindheimer Patches: ASTERISK-20834.patch uploaded by Mark Michelson (License #5049) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10-digiumphones@378655 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_mixmonitor.c b/apps/app_mixmonitor.c index cef4fa53c5..a1b7e0755c 100644 --- a/apps/app_mixmonitor.c +++ b/apps/app_mixmonitor.c @@ -509,7 +509,8 @@ static void mixmonitor_save_prep(struct mixmonitor *mixmonitor, char *filename, last_slash = strrchr(filename, '/'); if ((*ext = strrchr(filename, '.')) && (*ext > last_slash)) { - **(ext++) = '\0'; + **ext = '\0'; + *ext += 1; } else { *ext = "raw"; }