From 9ff2bfe4913c8e17b3c970c4a674036dcb05fb4b Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 2 May 2016 16:35:17 +0000 Subject: [PATCH] fix typos from Pedro Giffuni @FreeBSD --- lib/libedit/chartype.h | 6 +++--- lib/libedit/refresh.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libedit/chartype.h b/lib/libedit/chartype.h index 3ecf79bfbf78..0c9bda3322d2 100644 --- a/lib/libedit/chartype.h +++ b/lib/libedit/chartype.h @@ -1,4 +1,4 @@ -/* $NetBSD: chartype.h,v 1.31 2016/04/11 18:56:31 christos Exp $ */ +/* $NetBSD: chartype.h,v 1.32 2016/05/02 16:35:17 christos Exp $ */ /*- * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -69,13 +69,13 @@ wchar_t *ct_decode_string(const char *, ct_buffer_t *); * The pointer returned must be free()d when done. */ protected wchar_t **ct_decode_argv(int, const char *[], ct_buffer_t *); -/* Encode a characted into the destination buffer, provided there is sufficent +/* Encode a character into the destination buffer, provided there is sufficient * buffer space available. Returns the number of bytes used up (zero if the * character cannot be encoded, -1 if there was not enough space available). */ protected ssize_t ct_encode_char(char *, size_t, wchar_t); protected size_t ct_enc_width(wchar_t); -/* The maximum buffer size to hold the most unwieldly visual representation, +/* The maximum buffer size to hold the most unwieldy visual representation, * in this case \U+nnnnn. */ #define VISUAL_WIDTH_MAX ((size_t)8) diff --git a/lib/libedit/refresh.c b/lib/libedit/refresh.c index aa4f5f297c75..f1b731612a8b 100644 --- a/lib/libedit/refresh.c +++ b/lib/libedit/refresh.c @@ -1,4 +1,4 @@ -/* $NetBSD: refresh.c,v 1.49 2016/04/11 18:56:31 christos Exp $ */ +/* $NetBSD: refresh.c,v 1.50 2016/05/02 16:35:17 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)refresh.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: refresh.c,v 1.49 2016/04/11 18:56:31 christos Exp $"); +__RCSID("$NetBSD: refresh.c,v 1.50 2016/05/02 16:35:17 christos Exp $"); #endif #endif /* not lint && not SCCSID */ @@ -563,7 +563,7 @@ re_update_line(EditLine *el, wchar_t *old, wchar_t *new, int i) nls = ++n; /* - * find same begining and same end + * find same beginning and same end */ osb = ols; nsb = nls;