(statcmd): cast argument to isdigit to unsigned char
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14815 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1625,7 +1625,7 @@ statcmd(void)
|
|||||||
lreply(211, "%s FTP server (%s) status:", hostname, version);
|
lreply(211, "%s FTP server (%s) status:", hostname, version);
|
||||||
printf(" %s\r\n", version);
|
printf(" %s\r\n", version);
|
||||||
printf(" Connected to %s", remotehost);
|
printf(" Connected to %s", remotehost);
|
||||||
if (!isdigit(remotehost[0]))
|
if (!isdigit((unsigned char)remotehost[0]))
|
||||||
printf(" (%s)", inet_ntoa(his_addr.sin_addr));
|
printf(" (%s)", inet_ntoa(his_addr.sin_addr));
|
||||||
printf("\r\n");
|
printf("\r\n");
|
||||||
if (logged_in) {
|
if (logged_in) {
|
||||||
|
Reference in New Issue
Block a user