allow 0-9 in words as well

This commit is contained in:
TLINDEN
2015-08-03 21:14:59 +02:00
parent f9ee00a462
commit 6458d09cda
7 changed files with 102 additions and 14 deletions

View File

@@ -106,18 +106,20 @@ char **fetch_dict(char *dictfile) {
LOOP:
while ((linelen = getline(&line, &len, DICT)) != -1) {
if(jump > 0) {
jump--;
continue;
}
else {
jump = rand_lim(32);
if(! dontjump) {
if(jump > 0) {
jump--;
continue;
}
else {
jump = rand_lim(32);
}
}
if(linelen >= WMIN+1 && linelen <= WMAX+1) {
line[linelen-1] = '\0'; /* remove newline */
for(i=0; i<linelen-1; i++) {
if(isalpha((int)line[i]) == 0) {
if(isalnum((int)line[i]) == 0) {
next = 1;
break;
}