From: Ken Hornstein Date: Sun, 5 Jan 2014 01:44:21 +0000 (-0500) Subject: Whoops, I'm supposed to NUL-terminate the string, not set the actual pointer X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/d10b222f83c2fdf6fa5879be435bfa20b7109b21?ds=sidebyside;hp=2181cd0442664bf083825fd5b2d789714ba1812d Whoops, I'm supposed to NUL-terminate the string, not set the actual pointer itself! --- 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; }