aboutsummaryrefslogtreecommitdiff
path: root/test/020_io_H48_read_write
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-11-19 11:55:23 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2023-11-19 11:55:23 +0100
commitbb5abea645a31832e9d6a94cea09714a9b1632e3 (patch)
treefbad437281bb330287f4f4275a783a81512bac40 /test/020_io_H48_read_write
parent8059d63339b49d37af894f861956de4b89429bee (diff)
downloadnissy-core-bb5abea645a31832e9d6a94cea09714a9b1632e3.tar.gz
nissy-core-bb5abea645a31832e9d6a94cea09714a9b1632e3.zip
Fixed bug in tests with different architectures
Diffstat (limited to 'test/020_io_H48_read_write')
-rw-r--r--test/020_io_H48_read_write/io_H48_tests.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/020_io_H48_read_write/io_H48_tests.c b/test/020_io_H48_read_write/io_H48_tests.c
index fafd396..705356c 100644
--- a/test/020_io_H48_read_write/io_H48_tests.c
+++ b/test/020_io_H48_read_write/io_H48_tests.c
@@ -1,11 +1,13 @@
1#include "../test.h" 1#include "../test.h"
2 2
3int main(void) { 3int main(void) {
4 char *c, str[STRLENMAX]; 4 char str[STRLENMAX], *aux;
5 cube_t cube; 5 cube_t cube;
6 6
7 for (c = str; (*c = getchar()) != EOF; c++) ; 7 aux = str;
8 *c = '\0'; 8 while (fgets(aux, STRLENMAX, stdin) != NULL)
9 while (*aux != '\n')
10 aux++;
9 11
10 cube = readcube("H48", str); 12 cube = readcube("H48", str);
11 13

Generated with cgit - Back to sebastiano.tronto.net