summaryrefslogtreecommitdiff
path: root/sethdlc.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-10-31 21:09:21 +0000
committermmichelson <mmichelson@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-10-31 21:09:21 +0000
commitea02766a76edbfa86f5b4af0bd71937a8810fc3e (patch)
tree64c7ef476807532dbe3da047d9a2c5f0ad6f07d7 /sethdlc.c
parentc4db394bdab26fd167e483eba86c22abfaab0b35 (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.c')
-rw-r--r--sethdlc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sethdlc.c b/sethdlc.c
index 3514b2e..afbcb20 100644
--- a/sethdlc.c
+++ b/sethdlc.c
@@ -293,7 +293,7 @@ int main(int argc, char *argv[])
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(sock);