diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-05 02:45:59 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-05 02:45:59 +0000 |
commit | d338ebbf2dceed2ba917ed7c18c3426ba8822bef (patch) | |
tree | cd099d508765276288bfccb28560d7c280beeda6 /res | |
parent | 415158c826699089147cd76c5822e3661ca49eb3 (diff) |
fix non standard characters (bug 2778)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@4162 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rwxr-xr-x | res/res_monitor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_monitor.c b/res/res_monitor.c index 2a0b00fa4..a3f1747ec 100755 --- a/res/res_monitor.c +++ b/res/res_monitor.c @@ -103,7 +103,7 @@ int ast_monitor_start( struct ast_channel *chan, const char *format_spec, /* try creating the directory just in case it doesn't exist */ if (directory) { char *name = strdup(fname_base); - snprintf(tmp, sizeof(tmp), "mkdir -p %s",dirname(name)); + snprintf(tmp, sizeof(tmp), "mkdir -p \"%s\"",dirname(name)); free(name); system(tmp); } @@ -243,9 +243,9 @@ int ast_monitor_stop(struct ast_channel *chan, int need_lock) execute_args = ""; } - snprintf(tmp, sizeof(tmp), "%s %s/%s-in.%s %s/%s-out.%s %s/%s.%s %s &", execute, dir, name, format, dir, name, format, dir, name, format,execute_args); + snprintf(tmp, sizeof(tmp), "%s \"%s/%s-in.%s\" \"%s/%s-out.%s\" \"%s/%s.%s\" %s &", execute, dir, name, format, dir, name, format, dir, name, format,execute_args); if (delfiles) { - snprintf(tmp2,sizeof(tmp2), "( %s& rm -f %s/%s-* ) &",tmp, dir ,name); /* remove legs when done mixing */ + snprintf(tmp2,sizeof(tmp2), "( %s& rm -f \"%s\"/%s-* ) &",tmp, dir ,name); /* remove legs when done mixing */ strncpy(tmp, tmp2, sizeof(tmp) - 1); } ast_verbose("monitor executing %s\n",tmp); |