Import OpenBSD source tree of short before 17:00 UTC today

This commit is contained in:
tg
2003-05-07 17:15:23 +00:00
parent 93aa08df64
commit 7ebc0530d6
8 changed files with 54 additions and 47 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: emacs.c,v 1.18 2003/02/28 09:45:09 jmc Exp $ */
/* $OpenBSD: emacs.c,v 1.19 2003/04/16 23:11:52 tdeval Exp $ */
/*
* Emacs-like command line editing and history
@ -886,9 +886,9 @@ x_load_hist(hp)
}
x_histp = hp;
oldsize = x_size_str(xbuf);
(void)strcpy(xbuf, *hp);
strlcpy(xbuf, *hp, xend - xbuf);
xbp = xbuf;
xep = xcp = xbuf + strlen(*hp);
xep = xcp = xbuf + strlen(xbuf);
xlp_valid = FALSE;
if (xep > x_lastcp())
x_goto(xep);
@ -1022,7 +1022,7 @@ x_del_line(c)
int i, j;
*xep = 0;
i = xep- xbuf;
i = xep - xbuf;
j = x_size_str(xbuf);
xcp = xbuf;
x_push(i);