diff --git a/a2/program.c b/a2/program.c index ab32fc3..f76ee04 100644 --- a/a2/program.c +++ b/a2/program.c @@ -23,7 +23,7 @@ int main(){ hej = 1; //puts("halo"); } - if (r[0] == '}'){ + if (r[0] == '}' || r[n - 2] == '}'){ hej = 3; printf("Read: %s", r); printf("Unexpected closing bracket } in %d\n", i);