summaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/lab1test2.c2
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");