diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2017-01-30 22:35:42 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2017-01-30 22:35:42 +0000 |
commit | 70f1d4d70d0c78aa69c52d977130f4046851c4a3 (patch) | |
tree | 3f1be416faf93d8a37d2647ed89b08775fa00a24 /terminal.c | |
parent | 034904e961c672b6f56a1d03fa01e487c51fecdc (diff) | |
download | src-70f1d4d70d0c78aa69c52d977130f4046851c4a3.tar.gz src-70f1d4d70d0c78aa69c52d977130f4046851c4a3.zip |
Notes
Diffstat (limited to 'terminal.c')
-rw-r--r-- | terminal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/terminal.c b/terminal.c index 6a566bce9c6d..6d0706004ba6 100644 --- a/terminal.c +++ b/terminal.c @@ -1,4 +1,4 @@ -/* $NetBSD: terminal.c,v 1.22 2016/02/17 19:47:49 christos Exp $ */ +/* $NetBSD: terminal.c,v 1.24 2016/03/22 01:38:17 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)term.c 8.2 (Berkeley) 4/30/95"; #else -__RCSID("$NetBSD: terminal.c,v 1.22 2016/02/17 19:47:49 christos Exp $"); +__RCSID("$NetBSD: terminal.c,v 1.24 2016/03/22 01:38:17 christos Exp $"); #endif #endif /* not lint && not SCCSID */ @@ -378,7 +378,7 @@ terminal_alloc(EditLine *el, const struct termcapstr *t, const char *cap) */ tlen = 0; for (tmp = tlist; tmp < &tlist[T_str]; tmp++) - if (*tmp != NULL && *tmp != '\0' && *tmp != *str) { + if (*tmp != NULL && **tmp != '\0' && *tmp != *str) { char *ptr; for (ptr = *tmp; *ptr != '\0'; termbuf[tlen++] = *ptr++) @@ -666,7 +666,7 @@ terminal_overwrite(EditLine *el, const Char *cp, size_t n) if (n > (size_t)el->el_terminal.t_size.h) { #ifdef DEBUG_SCREEN (void) fprintf(el->el_errfile, - "%s: n is ridiculous: %d\r\n", __func__, n); + "%s: n is ridiculous: %zu\r\n", __func__, n); #endif /* DEBUG_SCREEN */ return; } |