diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-19 11:55:23 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-19 11:55:23 +0100 |
| commit | bb5abea645a31832e9d6a94cea09714a9b1632e3 (patch) | |
| tree | fbad437281bb330287f4f4275a783a81512bac40 /test/023_io_LST_write | |
| parent | 8059d63339b49d37af894f861956de4b89429bee (diff) | |
| download | nissy-core-bb5abea645a31832e9d6a94cea09714a9b1632e3.tar.gz nissy-core-bb5abea645a31832e9d6a94cea09714a9b1632e3.zip | |
Fixed bug in tests with different architectures
Diffstat (limited to 'test/023_io_LST_write')
| -rw-r--r-- | test/023_io_LST_write/io_LST_tests.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/023_io_LST_write/io_LST_tests.c b/test/023_io_LST_write/io_LST_tests.c index 3f42d7a..45cc203 100644 --- a/test/023_io_LST_write/io_LST_tests.c +++ b/test/023_io_LST_write/io_LST_tests.c | |||
| @@ -8,11 +8,13 @@ cube_t readcube(char *, char *); | |||
| 8 | void writecube(char *, cube_t, char *); | 8 | void writecube(char *, cube_t, char *); |
| 9 | 9 | ||
| 10 | int main(void) { | 10 | int main(void) { |
| 11 | char *c, str[STRLENMAX]; | 11 | char str[STRLENMAX], *aux; |
| 12 | cube_t cube; | 12 | cube_t cube; |
| 13 | 13 | ||
| 14 | for (c = str; (*c = getchar()) != EOF; c++) ; | 14 | aux = str; |
| 15 | *c = '\0'; | 15 | while (fgets(aux, STRLENMAX, stdin) != NULL) |
| 16 | while (*aux != '\n') | ||
| 17 | aux++; | ||
| 16 | 18 | ||
| 17 | cube = readcube("H48", str); | 19 | cube = readcube("H48", str); |
| 18 | 20 | ||
