From d10b222f83c2fdf6fa5879be435bfa20b7109b21 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Sat, 4 Jan 2014 20:44:21 -0500 Subject: [PATCH] Whoops, I'm supposed to NUL-terminate the string, not set the actual pointer itself! --- sbr/terminal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbr/terminal.c b/sbr/terminal.c index 89d0dafc..14eca97b 100644 --- a/sbr/terminal.c +++ b/sbr/terminal.c @@ -175,7 +175,7 @@ get_term_stringcap(char *capability) tputs(parm, 1, termbytes); - termcbufp = '\0'; + *termcbufp = '\0'; return termcbuf; } @@ -206,7 +206,7 @@ get_term_stringparm(char *capability, long arg1, long arg2) tputs(parm, 1, termbytes); - termcbufp = '\0'; + *termcbufp = '\0'; return termcbuf; } -- 2.56.0