Fix non-std characters
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4160 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
1bb19bec4b
commit
193cc5bb0d
1 changed files with 3 additions and 3 deletions
|
@ -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 */
|
/* try creating the directory just in case it doesn't exist */
|
||||||
if (directory) {
|
if (directory) {
|
||||||
char *name = strdup(fname_base);
|
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);
|
free(name);
|
||||||
system(tmp);
|
system(tmp);
|
||||||
}
|
}
|
||||||
|
@ -243,9 +243,9 @@ int ast_monitor_stop(struct ast_channel *chan, int need_lock)
|
||||||
execute_args = "";
|
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) {
|
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);
|
strncpy(tmp, tmp2, sizeof(tmp) - 1);
|
||||||
}
|
}
|
||||||
ast_verbose("monitor executing %s\n",tmp);
|
ast_verbose("monitor executing %s\n",tmp);
|
||||||
|
|
Loading…
Reference in a new issue