diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-30 18:01:47 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-30 18:01:47 +0000 |
commit | d9c0ce80e33c1a5524140c949a6bb69714dcb078 (patch) | |
tree | 114d035bead660a8d49f332e49c1b3aaf267d462 /res | |
parent | 51b307e9d07d618c8f4bac080fd164e02202b261 (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@16545 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_musiconhold.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 2a27dcec8..97ae3d871 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -778,6 +778,11 @@ static int moh_scan_files(struct mohclass *class) { if (i == class->total_files) strcpy(class->filearray[class->total_files++], filepath); + + /* If the new total files is equal to the maximum allowed, stop adding new ones */ + if (class->total_files == MAX_MOHFILES) + break; + } closedir(files_DIR); |