svn commit: r330966 - stable/11/lib/libcompat/4.3
Eitan Adler
eadler at FreeBSD.org
Thu Mar 15 02:32:23 UTC 2018
Author: eadler
Date: Thu Mar 15 02:32:22 2018
New Revision: 330966
URL: https://svnweb.freebsd.org/changeset/base/330966
Log:
MFC r329102:
libcompat: Use %hu for unsigned shorts.
Modified:
stable/11/lib/libcompat/4.3/rexec.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/lib/libcompat/4.3/rexec.c
==============================================================================
--- stable/11/lib/libcompat/4.3/rexec.c Thu Mar 15 02:25:28 2018 (r330965)
+++ stable/11/lib/libcompat/4.3/rexec.c Thu Mar 15 02:32:22 2018 (r330966)
@@ -356,7 +356,7 @@ retry:
goto bad;
}
port = ntohs((u_short)sin2.sin_port);
- (void) sprintf(num, "%u", port);
+ (void) sprintf(num, "%hu", port);
(void) write(s, num, strlen(num)+1);
{ int len = sizeof (from);
s3 = accept(s2, (struct sockaddr *)&from, &len);
More information about the svn-src-stable-11
mailing list