clean up the cvs import mess

nb, this doesnt mean the tree builds.
its bed time
This commit is contained in:
tg 2003-04-10 20:10:48 +00:00
parent d78ad9c36b
commit c3f3679ee8

View File

@ -1,4 +1,4 @@
/* $OpenBSD: history.c,v 1.17 2003/02/28 09:45:09 jmc Exp $ */ /* $OpenBSD: history.c,v 1.18 2003/04/06 23:39:17 deraadt Exp $ */
/* /*
* command history * command history
@ -93,8 +93,9 @@ c_fc(wp)
if (strcmp(p, "-") == 0) if (strcmp(p, "-") == 0)
sflag++; sflag++;
else { else {
editor = str_nsave(p, strlen(p) + 4, ATEMP); size_t len = strlen(p) + 4;
strcat(editor, " $_"); editor = str_nsave(p, len, ATEMP);
strlcat(editor, " $_", len);
} }
break; break;
case 'g': /* non-at&t ksh */ case 'g': /* non-at&t ksh */