From 97294b6cf8e3748bce83f152354420c74953c9f6 Mon Sep 17 00:00:00 2001 From: Mia Herkt Date: Wed, 7 Dec 2022 22:58:08 +0100 Subject: [PATCH] =?UTF-8?q?07:=20C:=20Don=E2=80=99t=20needlessly=20strip?= =?UTF-8?q?=20newline=20chars?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 07/solution.c | 1 - 1 file changed, 1 deletion(-) diff --git a/07/solution.c b/07/solution.c index ad20f9e..5e0027a 100644 --- a/07/solution.c +++ b/07/solution.c @@ -55,7 +55,6 @@ int main(int argc, char **argv) { size_t S = 0, G = 0, required = 0; while (fgets(l, 64, stdin)) { - l[strlen(l) - 1] = '\0'; if (l[0] == '$') { if (l[2] == 'c') { if (l[5] == '/')