summaryrefslogtreecommitdiff
path: root/lib/libcompat/4.3/rexec.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-03-16 03:16:46 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-03-16 03:16:46 +0000
commit80a5f49083aba7ea1d732be0ac0e483459366a8b (patch)
tree15baeeec8e4f180e4908c0202dcea00c1d47ee1b /lib/libcompat/4.3/rexec.c
parent7be6df901996d2f8252b4b4c79a66406265d2d2e (diff)
more avoidance of snprintf, strcpy, and strcat; millert ok
Diffstat (limited to 'lib/libcompat/4.3/rexec.c')
-rw-r--r--lib/libcompat/4.3/rexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcompat/4.3/rexec.c b/lib/libcompat/4.3/rexec.c
index 1f1413f3a7a..582ffb766fe 100644
--- a/lib/libcompat/4.3/rexec.c
+++ b/lib/libcompat/4.3/rexec.c
@@ -112,7 +112,7 @@ retry:
goto bad;
}
port = ntohs((u_short)sin2.sin_port);
- (void) sprintf(num, "%u", port);
+ (void) snprintf(num, sizeof num, "%u", port);
(void) write(s, num, strlen(num)+1);
{ int len = sizeof (from);
s3 = accept(s2, (struct sockaddr *)&from, &len);