From 651bbd563e32e6dd7da7fa9a28699162e4384220 Mon Sep 17 00:00:00 2001 From: Johnothan King Date: Thu, 24 Sep 2020 19:37:22 -0700 Subject: [PATCH] Fix garbled output from Ctrl+Alt+V (#135) This fixes a regression introduced in commit f9c127e3. When the legacy code for older versions of libast was removed, the fmtident wrapper wasn't removed. As a result, the version string output by Ctrl+Alt+V is garbled because the fmtident wrapper doesn't do any formatting: $ ^J@(#)$Id: Version AJM 93u+m 2020-09-14 src/cmd/ksh93/sh/string.c: - Remove the old version of fmtident that was overriding the current version of fmtident provided by libast (in src/lib/libast/string/fmtident.c). --- src/cmd/ksh93/sh/string.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/cmd/ksh93/sh/string.c b/src/cmd/ksh93/sh/string.c index b0d17600c..1111bb7bf 100644 --- a/src/cmd/ksh93/sh/string.c +++ b/src/cmd/ksh93/sh/string.c @@ -741,8 +741,3 @@ char *sh_checkid(char *str, char *last) } return(last); } - -char *fmtident(const char *string) -{ - return((char*)string); -}