diff options
| author | deraadt <> | 2002-05-29 09:23:25 +0000 |
|---|---|---|
| committer | deraadt <> | 2002-05-29 09:23:25 +0000 |
| commit | cbe7e59bea91cecb23d39ad01809b3639a007194 (patch) | |
| tree | 2a458c2d17f4fac13ef2ac36dea79b3b5e27a9ee /src | |
| parent | 6cb8e09414eccca14ec7833069cbe5fba323906b (diff) | |
| download | openbsd-cbe7e59bea91cecb23d39ad01809b3639a007194.tar.gz openbsd-cbe7e59bea91cecb23d39ad01809b3639a007194.tar.bz2 openbsd-cbe7e59bea91cecb23d39ad01809b3639a007194.zip | |
more snprintf
Diffstat (limited to '')
| -rw-r--r-- | src/usr.bin/nc/netcat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c index da57c3239a..3a1e9c1193 100644 --- a/src/usr.bin/nc/netcat.c +++ b/src/usr.bin/nc/netcat.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: netcat.c,v 1.47 2002/03/10 20:26:09 ericj Exp $ */ | 1 | /* $OpenBSD: netcat.c,v 1.48 2002/05/29 09:23:25 deraadt Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> | 3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> |
| 4 | * | 4 | * |
| @@ -645,7 +645,7 @@ build_ports(char *p) | |||
| 645 | /* Load ports sequentially */ | 645 | /* Load ports sequentially */ |
| 646 | for (cp = lo; cp <= hi; cp++) { | 646 | for (cp = lo; cp <= hi; cp++) { |
| 647 | portlist[x] = calloc(1, PORT_MAX); | 647 | portlist[x] = calloc(1, PORT_MAX); |
| 648 | sprintf(portlist[x], "%d", cp); | 648 | snprintf(portlist[x], PORT_MAX, "%d", cp); |
| 649 | x++; | 649 | x++; |
| 650 | } | 650 | } |
| 651 | 651 | ||
