mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
Merged revisions 106552 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r106552 | tilghman | 2008-03-07 00:36:33 -0600 (Fri, 07 Mar 2008) | 6 lines Safely use the strncat() function. (closes issue #11958) Reported by: norman Patches: 20080209__bug11958.diff.txt uploaded by Corydon76 (license 14) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@106553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4085,8 +4085,8 @@ static int vm_forwardoptions(struct ast_channel *chan, struct ast_vm_user *vmu,
|
||||
make_file(msgfile, sizeof(msgfile), curdir, curmsg);
|
||||
strcpy(textfile, msgfile);
|
||||
strcpy(backup, msgfile);
|
||||
strncat(textfile, ".txt", sizeof(textfile) - 1);
|
||||
strncat(backup, "-bak", sizeof(backup) - 1);
|
||||
strncat(textfile, ".txt", sizeof(textfile) - strlen(textfile) - 1);
|
||||
strncat(backup, "-bak", sizeof(backup) - strlen(backup) - 1);
|
||||
|
||||
msg_cfg = ast_config_load(textfile, config_flags);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user