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
This commit is contained in:
@@ -1135,7 +1135,7 @@ yylex(void)
|
|||||||
}
|
}
|
||||||
alarm(0);
|
alarm(0);
|
||||||
#ifdef HAVE_SETPROCTITLE
|
#ifdef HAVE_SETPROCTITLE
|
||||||
if (strncasecmp(cbuf, "PASS", 4) != NULL)
|
if (strncasecmp(cbuf, "PASS", 4) != 0)
|
||||||
setproctitle("%s: %s", proctitle, cbuf);
|
setproctitle("%s: %s", proctitle, cbuf);
|
||||||
#endif /* HAVE_SETPROCTITLE */
|
#endif /* HAVE_SETPROCTITLE */
|
||||||
if ((cp = strchr(cbuf, '\r'))) {
|
if ((cp = strchr(cbuf, '\r'))) {
|
||||||
|
Reference in New Issue
Block a user