From 8ae8a91b8b34514f3b3d5f695e6d5658cc875a66 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sat, 22 Jan 2005 16:26:32 +0000 Subject: * 20736: Src/Zle/zle_utils.c: change zlegetline() to return a metafied string. --- Src/Zle/zle_utils.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'Src/Zle/zle_utils.c') diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index d769e8363..3696d781b 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -72,14 +72,11 @@ sizeline(int sz) /* * Insert a character, called from main shell. - * - * WCHAR: type is wrong, should be a genuine wide character, - * when available in the caller. */ /**/ mod_export void -zleaddtoline(int chr) +zleaddtoline(ZLE_CHAR_T chr) { spaceinline(1); zleline[zlecs++] = chr; @@ -109,15 +106,13 @@ zlegetline(int *ll, int *cs) } *ll = mb_len; - - return (unsigned char *)s; #else *ll = zlell; *cs = zlecs; s = ztrdup(zleline); - return (unsigned char *)s; #endif + return (unsigned char *) metafy((char *) s, zlell, META_REALLOC); } -- cgit v1.2.3