fix warning

This commit is contained in:
bePrivate
2023-10-29 01:08:27 +02:00
parent 979dabf603
commit 1c638de0d6
2 changed files with 1 additions and 1 deletions
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -173,7 +173,7 @@ int search_wordlist(char wordlist[][6], char target[]) {
helper function for searching within a string
*/
int search_word(char word[], char target) {
for (int i = 0; i < sizeof(word)/sizeof(word[0]); i++) {
for (int i = 0; i < strlen(word); i++) {
if (word[i] == target) return i;
}
return -1;