diff options
author | mmichelson <mmichelson@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-10-31 21:09:21 +0000 |
---|---|---|
committer | mmichelson <mmichelson@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-10-31 21:09:21 +0000 |
commit | ea02766a76edbfa86f5b4af0bd71937a8810fc3e (patch) | |
tree | 64c7ef476807532dbe3da047d9a2c5f0ad6f07d7 /sethdlc-new.c | |
parent | c4db394bdab26fd167e483eba86c22abfaab0b35 (diff) |
Merged revisions 3205 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.2
........
r3205 | mmichelson | 2007-10-31 16:08:15 -0500 (Wed, 31 Oct 2007) | 5 lines
Fixed potential buffer overflow.
See AST-2007-024 for more details
........
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3206 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'sethdlc-new.c')
-rw-r--r-- | sethdlc-new.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sethdlc-new.c b/sethdlc-new.c index 4a4a7bb..1765c32 100644 --- a/sethdlc-new.c +++ b/sethdlc-new.c @@ -673,7 +673,7 @@ int main(int arg_c, char *arg_v[]) if (sock < 0) error("Unable to create socket: %s\n", strerror(errno)); - strcpy(req.ifr_name, argv[1]); /* Device name */ + strncpy(req.ifr_name, argv[1], sizeof(req.ifr_name) - 1); /* Device name */ if (argc == 2) show_port(); |