diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index fccf3c18..956dabfb 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -980 +980 @@ parse_display_string (CT ct, char *cp, int *xstdin, int *xlist, - while ((pp = strchr (pp, '\'')) && buflen > 3) { + while ((pp = strchr (pp, '\'')) && buflen > 5) { @@ -987,2 +987,2 @@ parse_display_string (CT ct, char *cp, int *xstdin, int *xlist, - memmove (pp + 2, pp, len); - *pp++ = '\\'; + memmove (pp + 4, pp, len); + *pp++ = '"'; @@ -990,2 +990,4 @@ parse_display_string (CT ct, char *cp, int *xstdin, int *xlist, - buflen -= 2; - bp += 2; + *pp++ = '"'; + *pp++ = '\''; + buflen -= 4; + bp += 4;