minor changes
parent
bf14307a71
commit
cf63dc4712
4
src/ui.c
4
src/ui.c
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
char taskname ;
|
char *taskname = "empty";
|
||||||
int taskcreation_date = 0;
|
int taskcreation_date = 0;
|
||||||
int taskdeadline_date = 0;
|
int taskdeadline_date = 0;
|
||||||
int taskpriority = 0;
|
int taskpriority = 0;
|
||||||
|
@ -51,7 +51,7 @@ int main(void)
|
||||||
switch (choice){
|
switch (choice){
|
||||||
case 1:{
|
case 1:{
|
||||||
printf(" Geben sie das gewünschte Fach ein: \n");
|
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");
|
printf("Ungültige Eingabe für den Namen.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue