diff options
author | runge <runge> | 2006-07-04 19:55:28 +0000 |
---|---|---|
committer | runge <runge> | 2006-07-04 19:55:28 +0000 |
commit | 1b51530afbc5dff413ea0090834d92e1d96e96e9 (patch) | |
tree | 98720532dfb9ab9b2e7763d3cd54340a768f45b8 /x11vnc/unixpw.c | |
parent | a7726a6f970f49c2bedac4926aa30de18d96ae41 (diff) | |
download | libtdevnc-1b51530afbc5dff413ea0090834d92e1d96e96e9.tar.gz libtdevnc-1b51530afbc5dff413ea0090834d92e1d96e96e9.zip |
x11vnc: remove compiler warnings; HP-UX tweaks.
Diffstat (limited to 'x11vnc/unixpw.c')
-rw-r--r-- | x11vnc/unixpw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/x11vnc/unixpw.c b/x11vnc/unixpw.c index 8402ea8..6e3da94 100644 --- a/x11vnc/unixpw.c +++ b/x11vnc/unixpw.c @@ -358,7 +358,7 @@ int crypt_verify(char *user, char *pass) { if (db > 1) fprintf(stderr, "realpw='%s'\n", realpw); - if (strlen(realpw) < 10) { + if (strlen(realpw) < 12) { /* e.g. "x", try getspnam(), sometimes root for inetd, etc */ #if LIBVNCSERVER_HAVE_GETSPNAM struct spwd *sp = getspnam(user); @@ -680,11 +680,11 @@ if (db) fprintf(stderr, "%s", buf); } if (n == 1) { - if (isspace(buf[0])) { + if (isspace((unsigned char) buf[0])) { i--; continue; } - instr[j++] = tolower(buf[0]); + instr[j++] = tolower((unsigned char)buf[0]); } if (n <= 0 || strstr(pstr, instr) != pstr) { if (db) { |