diff --git a/main.c b/main.c index 4034716..669652f 100644 --- a/main.c +++ b/main.c @@ -71,7 +71,7 @@ int main(int argc, char *argv[]) userInput = inputNumber("Welche Zahl kommt doppelt vor: "); measuredSeconds = stopTimer(); - duplicate = getDuplicate(numbers, numberOfElements+1); + duplicate = getDuplicate(numbers, numberOfElements); // check result and update highscores if(userInput == duplicate)