From 539f1846e6caad3a751c95483d9c27ac497e577e Mon Sep 17 00:00:00 2001 From: Felipe Boeira Date: Fri, 29 Jan 2021 14:44:17 +0100 Subject: Update lab1test2.c --- src/examples/lab1test2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/examples') diff --git a/src/examples/lab1test2.c b/src/examples/lab1test2.c index e86e3b6..00ad849 100644 --- a/src/examples/lab1test2.c +++ b/src/examples/lab1test2.c @@ -191,11 +191,11 @@ int main(void) printf("Type 10 characters: "); bytes_read = read(STDIN_FILENO, sbuf, READ_CONSOLE_COUNT); printf("\n"); - printf("You have typed: ‰s\n", sbuf); if (bytes_read != READ_CONSOLE_COUNT) { ERROR("Failed to read %d characters from console, read %d.\n", READ_CONSOLE_COUNT, bytes_read); } + printf("You have typed: %.*s\n", READ_CONSOLE_COUNT, sbuf); SUCCESS("TEST 6: Passed\n"); -- cgit v1.2.1