Fix silly typo
authorMark Spencer <markster@digium.com>
Wed, 26 Mar 2003 00:16:00 +0000 (00:16 +0000)
committerMark Spencer <markster@digium.com>
Wed, 26 Mar 2003 00:16:00 +0000 (00:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@689 65c4cc65-6c06-0410-ace0-fbb531ad65f3

app.c

diff --git a/app.c b/app.c
index 81f31ca..4ddaa93 100755 (executable)
--- a/app.c
+++ b/app.c
@@ -219,7 +219,7 @@ int ast_app_messagecount(const char *mailbox, int *newmsgs, int *oldmsgs)
                        while ((de = readdir(dir))) {
                                if ((strlen(de->d_name) > 3) && !strncasecmp(de->d_name, "msg", 3) &&
                                        !strcasecmp(de->d_name + strlen(de->d_name) - 3, "txt"))
-                                               *newmsgs++;
+                                               (*newmsgs)++;
                                        
                        }
                        closedir(dir);
@@ -232,7 +232,7 @@ int ast_app_messagecount(const char *mailbox, int *newmsgs, int *oldmsgs)
                        while ((de = readdir(dir))) {
                                if ((strlen(de->d_name) > 3) && !strncasecmp(de->d_name, "msg", 3) &&
                                        !strcasecmp(de->d_name + strlen(de->d_name) - 3, "txt"))
-                                               *oldmsgs++;
+                                               (*oldmsgs)++;
                                        
                        }
                        closedir(dir);