From cf63dc47121e0381e7850dcf85ad23b4c82dd268 Mon Sep 17 00:00:00 2001 From: juergen Date: Sat, 14 Dec 2024 22:37:18 +0100 Subject: [PATCH] minor changes --- src/ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui.c b/src/ui.c index 0d5c4d1..8f69ae7 100644 --- a/src/ui.c +++ b/src/ui.c @@ -15,7 +15,7 @@ int main(void) { - char taskname ; + char *taskname = "empty"; int taskcreation_date = 0; int taskdeadline_date = 0; int taskpriority = 0; @@ -51,7 +51,7 @@ int main(void) switch (choice){ case 1:{ printf(" Geben sie das gewünschte Fach ein: \n"); - if (scanf("%255s", taskname) != 1) { + if (scanf("%c", taskname) != 1) { printf("Ungültige Eingabe für den Namen.\n"); return -1; }