summaryrefslogtreecommitdiff
path: root/ncurses/widechar/lib_in_wchnstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ncurses/widechar/lib_in_wchnstr.c')
-rw-r--r--ncurses/widechar/lib_in_wchnstr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ncurses/widechar/lib_in_wchnstr.c b/ncurses/widechar/lib_in_wchnstr.c
index 40a2bb62b419..6f24888ba1d3 100644
--- a/ncurses/widechar/lib_in_wchnstr.c
+++ b/ncurses/widechar/lib_in_wchnstr.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright 2020 Thomas E. Dickey *
+ * Copyright 2020,2024 Thomas E. Dickey *
* Copyright 2002-2007,2009 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
@@ -40,7 +40,7 @@
#include <curses.priv.h>
-MODULE_ID("$Id: lib_in_wchnstr.c,v 1.9 2020/02/02 23:34:34 tom Exp $")
+MODULE_ID("$Id: lib_in_wchnstr.c,v 1.11 2024/12/07 18:03:14 tom Exp $")
NCURSES_EXPORT(int)
win_wchnstr(WINDOW *win, cchar_t *wchstr, int n)
@@ -48,9 +48,9 @@ win_wchnstr(WINDOW *win, cchar_t *wchstr, int n)
int code = OK;
T((T_CALLED("win_wchnstr(%p,%p,%d)"), (void *) win, (void *) wchstr, n));
- if (win != 0
- && wchstr != 0) {
- NCURSES_CH_T *src;
+ if (win != NULL
+ && wchstr != NULL) {
+ const NCURSES_CH_T *src;
int row, col;
int j, k, limit;