[Asterisk-cvs] asterisk/apps app_hasnewvoicemail.c,1.2,1.3
markster at lists.digium.com
markster at lists.digium.com
Mon Dec 8 13:40:29 CST 2003
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv29124/apps
Modified Files:
app_hasnewvoicemail.c
Log Message:
Path fix for hasnewvoicmeail app
Index: app_hasnewvoicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_hasnewvoicemail.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- app_hasnewvoicemail.c 29 Sep 2003 20:13:54 -0000 1.2
+++ app_hasnewvoicemail.c 8 Dec 2003 19:31:56 -0000 1.3
@@ -42,6 +42,7 @@
#include <pthread.h>
+#include "../astconf.h"
static char *tdesc = "Indicator for whether a voice mailbox has new messages.";
static char *app_hasnewvoicemail = "HasNewVoicemail";
@@ -82,7 +83,7 @@
vmbox = strsep(&context,"@");
}
- snprintf(vmpath,255,ASTSPOOLDIR "/voicemail/%s/%s/INBOX", context, vmbox);
+ snprintf(vmpath,sizeof(vmpath), "%s/voicemail/%s/%s/INBOX", (char *)ast_config_AST_SPOOL_DIR, context, vmbox);
if (!(vmdir = opendir(vmpath))) {
ast_log(LOG_NOTICE, "Voice mailbox %s at %s does not exist\n", vmbox, vmpath);
} else {
More information about the svn-commits
mailing list