Displaying 1 result from an estimated 1 matches for "stringsize".
Did you mean:
string_size
1997 Jan 27
2
SECURITY: passwd problem (second edition)
...cracklib/fascist.c cracklib25_small/cracklib/fascist.c
--- cracklib25_small.orig/cracklib/fascist.c Mon Jan 27 12:21:13 1997
+++ cracklib25_small/cracklib/fascist.c Mon Jan 27 12:24:28 1997
@@ -223,39 +223,17 @@
wc = 0;
ptr = gbuffer;
- while (*ptr)
+ while (*ptr && wc < STRINGSIZE-1)
{
- while (*ptr && ISSKIP(*ptr))
- {
- ptr++;
- }
-
- if (ptr != gbuffer)
- {
- ptr[-1] = ''\0'';
- }
-
+ while (*ptr && ISSKIP(*ptr)) ptr++;
+ if (!*ptr) break;
uwords[wc++] = ptr;
-
- if (wc == STRINGSIZE)
- {
- uwords[--wc] = (char *) 0; /* t...