[Asterisk-cvs] asterisk/apps app_agi.c,1.40,1.41
markster at lists.digium.com
markster at lists.digium.com
Sat May 22 00:39:40 CDT 2004
- Previous message: [Asterisk-cvs] libpri Makefile,1.9,1.10 pri_q921.h,1.7,1.8 pridump.c,1.1,1.2 pritest.c,1.2,1.3 testprilib.c,1.1,1.2
- Next message: [Asterisk-cvs] asterisk/channels chan_zap.c,1.233,1.234
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv16176/apps
Modified Files:
app_agi.c
Log Message:
Work on a copy with app_agi
Index: app_agi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_agi.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- app_agi.c 20 May 2004 16:30:10 -0000 1.40
+++ app_agi.c 22 May 2004 04:52:50 -0000 1.41
@@ -1466,7 +1466,8 @@
int res=0;
struct localuser *u;
char *argv[MAX_ARGS];
- char *tmp = (char *)data;
+ char buf[2048]="";
+ char *tmp = (char *)buf;
int argc = 0;
int fds[2];
int efd = -1;
@@ -1477,7 +1478,7 @@
ast_log(LOG_WARNING, "AGI requires an argument (script)\n");
return -1;
}
-
+ strncpy(buf, data, sizeof(buf) - 1);
memset(&agi, 0, sizeof(agi));
while ((stringp = strsep(&tmp, "|"))) {
@@ -1500,7 +1501,7 @@
agi.fd = fds[1];
agi.ctrl = fds[0];
agi.audio = efd;
- res = run_agi(chan, tmp, &agi, pid, dead);
+ res = run_agi(chan, argv[0], &agi, pid, dead);
close(fds[1]);
if (efd > -1)
close(efd);
- Previous message: [Asterisk-cvs] libpri Makefile,1.9,1.10 pri_q921.h,1.7,1.8 pridump.c,1.1,1.2 pritest.c,1.2,1.3 testprilib.c,1.1,1.2
- Next message: [Asterisk-cvs] asterisk/channels chan_zap.c,1.233,1.234
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list