]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix incorrect pointer manipulation that caused mixmonitor recording to fail.
authorMark Michelson <mmichelson@digium.com>
Tue, 8 Jan 2013 15:51:27 +0000 (15:51 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 8 Jan 2013 15:51:27 +0000 (15:51 +0000)
(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

apps/app_mixmonitor.c

index cef4fa53c59d0639340b35aecff2d4215441366a..a1b7e0755c04a2d8467f15425e1837e1f4f439e9 100644 (file)
@@ -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";
                        }