aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-10-18 16:47:57 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-10-18 16:47:57 +0000
commit3b0ed1ec21c33db5533265e3f0339074324e2817 (patch)
treee6f64a0d6ef32dc8598367c752db154a16cf3a4b /apps
parent45ac69512b3210e5e4bd6e0b5c66d615f7b47c4e (diff)
Version 0.1.10 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@376 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_record.c2
-rwxr-xr-xapps/app_url.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_record.c b/apps/app_record.c
index 4703ade72..d5937b6ee 100755
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -89,7 +89,7 @@ static int record_exec(struct ast_channel *chan, void *data)
count++;
} while ( ast_fileexists(tmp, ext, chan->language) != -1 );
} else
- strncpy(tmp, fil, 256);
+ strncpy(tmp, fil, 256-1);
/* end of routine mentioned */
LOCAL_USER_ADD(u);
diff --git a/apps/app_url.c b/apps/app_url.c
index 542c490a7..7e6036140 100755
--- a/apps/app_url.c
+++ b/apps/app_url.c
@@ -55,7 +55,7 @@ static int sendurl_exec(struct ast_channel *chan, void *data)
ast_log(LOG_WARNING, "SendURL requires an argument (URL)\n");
return -1;
}
- strncpy(tmp, (char *)data, sizeof(tmp));
+ strncpy(tmp, (char *)data, sizeof(tmp)-1);
strtok(tmp, "|");
options = strtok(NULL, "|");
if (options && !strcasecmp(options, "wait"))