We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59f4cac commit ab86bb5Copy full SHA for ab86bb5
files/russian.dict
-5.81 KB
files_src/convert.sh
@@ -1,4 +1,4 @@
1
#!/bin/sh
2
3
-tr -d '\04' < russian.ucs2.dict > ../files/russian.dict
+tr -d '\04\r\0' < russian.ucs2.dict > ../files/russian.dict
4
helpers/hangman.c
@@ -17,16 +17,13 @@ char* hangman_get_random_word(const char* dict_file) {
17
if(!seek_result) {
18
stream_rewind(stream);
19
}
20
-
21
- stream_read_line(stream, line);
22
- } else {
23
24
+ stream_read_line(stream, line);
25
} else {
26
furi_crash(NULL);
27
28
29
- furi_string_trim(line);
+ furi_string_trim(line, "\n");
30
31
char* word = strdup(furi_string_get_cstr(line));
32
furi_string_free(line);
0 commit comments