generated from freudenreichan/info2Praktikum-Wortsalat
fixed strcp to strpy in input.c
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
||||
//Edge case: If the last word ends on a '\0', right after the last letter
|
||||
if (wordIndex > 0 && wordcount < maxWordCount) {
|
||||
word[wordIndex] = '\0';
|
||||
strcp(words[wordcount], word);
|
||||
strcpy(words[wordcount], word);
|
||||
wordcount++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user