input.c fix
This commit is contained in:
parent
89ac27f8d3
commit
df39903293
@ -30,7 +30,7 @@ int readWords(FILE* file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
||||
while (token != NULL && count < maxWordCount)
|
||||
{
|
||||
for (char* p = token; *p; ++p)
|
||||
(char)toupper((unsigned char)*p);
|
||||
*p=(char)toupper((unsigned char)*p);
|
||||
strncpy(words[count], token, MAX_WORD_LEN - 1);
|
||||
words[count][MAX_WORD_LEN - 1] = '\0';
|
||||
count++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user