From 516049f1bda011542f2019c4d79e939f12cb3211 Mon Sep 17 00:00:00 2001 From: fdai7727 Date: Thu, 25 Jan 2024 21:10:42 +0100 Subject: [PATCH] =?UTF-8?q?Hotfix:=20Bei=20W=C3=B6rtern=20mit=20kleinen=20?= =?UTF-8?q?Buchstaben=20werden=20die=20Buchstaben=20als=20klein=20=C3=BCbe?= =?UTF-8?q?rnommen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/c/Tim/hangman.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/c/Tim/hangman.c b/src/main/c/Tim/hangman.c index d5c5255..8719211 100644 --- a/src/main/c/Tim/hangman.c +++ b/src/main/c/Tim/hangman.c @@ -201,7 +201,7 @@ void changeLetter(char x, char y[], int length, char ptr[]) { if (x == y[i]-32 || x == y[i] ) { - if(i ==0) + if(i ==0 && isupper(y[0])!=0) { ptr[i] = x; } @@ -215,7 +215,7 @@ void changeLetter(char x, char y[], int length, char ptr[]) { if (x == y[i]||x == y[i]+32) { - if(i == 0) + if(i == 0 && isupper(y[0])!=0) { ptr[i] = x-32; }