this one was found by scan-build from llvm+clang

This commit is contained in:
tg 2010-07-04 18:52:52 +00:00
parent a516ea5d89
commit 31b288561f

4
edit.c
View File

@ -25,7 +25,7 @@
#include "sh.h" #include "sh.h"
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.193 2010/07/04 17:45:12 tg Exp $"); __RCSID("$MirOS: src/bin/mksh/edit.c,v 1.194 2010/07/04 18:52:52 tg Exp $");
/* /*
* in later versions we might use libtermcap for this, but since external * in later versions we might use libtermcap for this, but since external
@ -1944,7 +1944,7 @@ x_draw_line(int c MKSH_A_UNUSED)
static int static int
x_e_rebuildline(const char *clrstr) x_e_rebuildline(const char *clrstr)
{ {
shf_fprintf(shl_out, clrstr); shf_puts(clrstr, shl_out);
x_adjust(); x_adjust();
return (KSTD); return (KSTD);
} }