diff options
| author | Felipe Boeira <felipe.boeira@liu.se> | 2021-01-29 14:44:17 +0100 |
|---|---|---|
| committer | Felipe Boeira <felipe.boeira@liu.se> | 2021-01-29 14:44:17 +0100 |
| commit | 539f1846e6caad3a751c95483d9c27ac497e577e (patch) | |
| tree | 42e3f9d8d71062dc46094997c84e69177c1b86c3 /src/examples | |
| parent | e23f06729ed1fe6693c3411f8df3ba7eeadf3ed3 (diff) | |
| download | pintos-539f1846e6caad3a751c95483d9c27ac497e577e.tar.gz | |
Update lab1test2.c
Diffstat (limited to 'src/examples')
| -rw-r--r-- | src/examples/lab1test2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |
