aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-07-29 15:38:02 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-07-29 15:38:02 +0000
commit5ec52e802ca50b91024828cc7bf05484eedee724 (patch)
tree411d8c3fc84d243729062e20aa6bf8ccfb8b0512 /res
parent37312e1c31e5b5037a3024dd42dbf9c2b0148ef3 (diff)
Minor fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1235 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rwxr-xr-xres/res_musiconhold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index b9a680d39..7dd88572b 100755
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -496,7 +496,7 @@ static int moh_register(char *classname, char *mode, char *param, char *miscargs
if (!strcasecmp(mode, "mp3") || !strcasecmp(mode, "quietmp3") || !strcasecmp(mode, "httpmp3")) {
if (!strcasecmp(mode, "quietmp3"))
moh->quiet = 1;
- strncpy(moh->dir, param, sizeof(moh->dir));
+ strncpy(moh->dir, param, sizeof(moh->dir) - 1);
moh->srcfd = -1;
#ifdef ZAPATA_MOH
/* It's an MP3 Moh -- Open /dev/zap/pseudo for timing... Is