diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c index 1218e03dab09..181f484c7262 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c @@ -867,7 +867,7 @@ static void addquoted (lua_State *L, luaL_Buffer *b, int arg) { luaL_addchar(b, '\\'); luaL_addchar(b, *s); } - else if (*s == '\0' || iscntrl(uchar(*s))) { + else if (*s == '\0' || iscntrl(*s)) { char buff[10]; if (!isdigit(uchar(*(s+1)))) sprintf(buff, "\\%d", (int)uchar(*s));