diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libprocstat/common_kvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libprocstat/common_kvm.c b/lib/libprocstat/common_kvm.c index 1ff181c..63302bc 100644 --- a/lib/libprocstat/common_kvm.c +++ b/lib/libprocstat/common_kvm.c @@ -80,7 +80,7 @@ kdevtoname(kvm_t *kd, struct cdev *dev, char *buf) assert(buf); if (!kvm_read_all(kd, (unsigned long)dev, &si, sizeof(si))) return (1); - strlcpy(buf, si.__si_namebuf, SPECNAMELEN + 1); + strlcpy(buf, si.si_name, SPECNAMELEN + 1); return (0); } |