From f25699e3a6d468fc063049a0819040f00ddc2d7b Mon Sep 17 00:00:00 2001 From: Rushil Umaretiya Date: Wed, 21 Feb 2024 14:21:57 -0500 Subject: [PATCH] fix: twos.c null terminator --- twos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twos.c b/twos.c index e6dcffa..9dcbcb7 100644 --- a/twos.c +++ b/twos.c @@ -6,7 +6,7 @@ int main(int argc, char *argv[]) { int num = abs(atoi(argv[1])); - char out[16]; + char out[17] = "\0"; if (num > 65535) { printf("not possible\n");