commit a1ea8f71d6c75d7a03e21ba6e0ab8da15846bd88 parent 4b54ffd37c6b25177383a928b855b6515a15e8da Author: Jacob R. Edwards <jacobouno@protonmail.com> Date: Thu, 24 Dec 2020 19:19:44 -0800 In tr() terminate the result string with nul Diffstat:
M | main.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/main.c b/main.c @@ -159,6 +159,7 @@ tr(char *r, const char *s, int orig, int repl) *r = repl; else *r = *s; + *r = '\0'; } int