diff options
| author | Faraz Vahedi <kfv@FreeBSD.org> | 2026-09-19 10:14:30 +0000 |
|---|---|---|
| committer | Faraz Vahedi <kfv@FreeBSD.org> | 2026-09-19 10:14:30 +0000 |
| commit | 066fad8aefcb5bda77482c526757712ad0637aa9 (patch) | |
| tree | 72309ac5c99bb08ac6d80c3120f101cc9e2532a0 | |
| parent | 225612c76d870aa6467853fbafcbe34e8296d0d9 (diff) | |
ed(1): Preserve const qualifier on strchr(3) result
Reviewed by: fuz
Approved by: fuz (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D59773
| -rw-r--r-- | bin/ed/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ed/io.c b/bin/ed/io.c index 3a1b6d8bb443..9836820302ff 100644 --- a/bin/ed/io.c +++ b/bin/ed/io.c @@ -297,7 +297,7 @@ put_tty_line(const char *s, int l, long n, int gflag) { int col = 0; int lc = 0; - char *cp; + const char *cp; wchar_t wc; mbstate_t mbs; size_t clen; |
