From 67e6f2f7eb0c8d05dc104852780521e1965af934 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Wed, 19 Nov 2003 18:19:17 +0000 Subject: [PATCH] strncasecmp returns integer so don't compare with NULL git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13127 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftpd/ftpcmd.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appl/ftp/ftpd/ftpcmd.y b/appl/ftp/ftpd/ftpcmd.y index 7f38bb664..d6d440dd5 100644 --- a/appl/ftp/ftpd/ftpcmd.y +++ b/appl/ftp/ftpd/ftpcmd.y @@ -1135,7 +1135,7 @@ yylex(void) } alarm(0); #ifdef HAVE_SETPROCTITLE - if (strncasecmp(cbuf, "PASS", 4) != NULL) + if (strncasecmp(cbuf, "PASS", 4) != 0) setproctitle("%s: %s", proctitle, cbuf); #endif /* HAVE_SETPROCTITLE */ if ((cp = strchr(cbuf, '\r'))) {