Date: Thu, 15 Mar 2018 02:32:22 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r330966 - stable/11/lib/libcompat/4.3 Message-ID: <201803150232.w2F2WM8N046337@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803150232.w2F2WM8N046337>