diff --git a/build/test/out/c/quizduell.o b/build/test/out/c/quizduell.o index 4faa0d5..16b992d 100644 Binary files a/build/test/out/c/quizduell.o and b/build/test/out/c/quizduell.o differ diff --git a/build/test/out/test_quizduell.out b/build/test/out/test_quizduell.out index 1b1bb4b..3c22b2e 100644 Binary files a/build/test/out/test_quizduell.out and b/build/test/out/test_quizduell.out differ diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 17c38f2..fbe722a 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.019618399994214997 +:time: 0.020513700001174584 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 5e02b30..522f474 100644 --- a/build/test/results/test_quizduell.pass +++ b/build/test/results/test_quizduell.pass @@ -51,4 +51,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.01995129999704659 +:time: 0.0187185000104364 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 8bab1b8..283710e 100644 --- a/build/test/results/test_timequiz.pass +++ b/build/test/results/test_timequiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.02664090000325814 +:time: 0.01958560000639409 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 4c520b3..b1d00a6 100644 --- a/build/test/results/test_wwm.pass +++ b/build/test/results/test_wwm.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.021034899982623756 +:time: 0.019048200018005446 diff --git a/src/quizduell.c b/src/quizduell.c index a60eb72..2423e44 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -10,7 +10,7 @@ int pruefeAntwort(QuizFrage frage, char antwort) { QuizFrage erstelleFrage(const char* frage, const char* antwortA, const char* antwortB, const char* antwortC, const char* antwortD, char korrekteAntwort) { QuizFrage neueFrage; - strcpy(neueFrage.frage, frage); + snprintf(neueFrage.frage, sizeof(neueFrage.frage), "%s", frage); strcpy(neueFrage.antwortA, antwortA); strcpy(neueFrage.antwortB, antwortB); strcpy(neueFrage.antwortC, antwortC);