Fix GENERIC_USERNAMES thinko
This commit is contained in:
+3
-2
@@ -1337,8 +1337,9 @@ plnamesuffix()
|
|||||||
i = (int)strlen(plname);
|
i = (int)strlen(plname);
|
||||||
eptr = GENERIC_USERNAMES;
|
eptr = GENERIC_USERNAMES;
|
||||||
sptr = strstri(eptr, plname);
|
sptr = strstri(eptr, plname);
|
||||||
if (sptr && ((sptr == eptr && (sptr[i] == ' ' || sptr[i] == '\0'))
|
if (sptr
|
||||||
|| sptr[i] == ' ' || sptr[i] == '\0'))
|
&& (sptr == eptr || sptr[-1] == ' ')
|
||||||
|
&& (sptr[i] == ' ' || sptr[i] == '\0'))
|
||||||
*plname = '\0'; /* call askname() */
|
*plname = '\0'; /* call askname() */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user