minor changes

bugfixMaster
Jürgen Büchel 2024-12-14 22:37:18 +01:00
parent bf14307a71
commit cf63dc4712
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}