From 7daf3f0b590cc988cbcb3427ec620114f1c982ab Mon Sep 17 00:00:00 2001 From: tg Date: Tue, 14 Oct 2008 19:48:27 +0000 Subject: [PATCH] fix a warning From: Elias Pipping --- histrap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/histrap.c b/histrap.c index 3bd237d..2b4a904 100644 --- a/histrap.c +++ b/histrap.c @@ -3,7 +3,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/histrap.c,v 1.71 2008/10/13 23:06:02 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/histrap.c,v 1.72 2008/10/14 19:48:27 tg Exp $"); /*- * MirOS: This is the default mapping type, and need not be specified. @@ -864,7 +864,8 @@ histload(Source *s, unsigned char *base, int bytes) histinsert(s, lno, (char *)line); } else { s->line = lno--; - histsave(&lno, line, false, false); + histsave(&lno, (char *)line, false, + false); } state = shdr; }