pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/lsof/files lsof: don't consume buffer space i...
details: https://anonhg.NetBSD.org/pkgsrc/rev/956830330d53
branches: trunk
changeset: 379916:956830330d53
user: tnn <tnn%pkgsrc.org@localhost>
date: Wed May 25 09:48:58 2022 +0000
description:
lsof: don't consume buffer space if we didn't add a '/'
diffstat:
sysutils/lsof/files/rnmt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 3ab1ab3317d7 -r 956830330d53 sysutils/lsof/files/rnmt.c
--- a/sysutils/lsof/files/rnmt.c Wed May 25 09:37:54 2022 +0000
+++ b/sysutils/lsof/files/rnmt.c Wed May 25 09:48:58 2022 +0000
@@ -192,8 +192,8 @@
if (lnc->lnc_plnc != NULL) {
**buf = '/';
(*buf)++;
+ remaining--;
}
- remaining--;
len = lnc->lnc_nlen;
if (*remaining < len)
len = *remaining;
Home |
Main Index |
Thread Index |
Old Index