summaryrefslogtreecommitdiffstats
path: root/lib/libkvm
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2007-10-26 15:25:28 +0000
committerjulian <julian@FreeBSD.org>2007-10-26 15:25:28 +0000
commit8726f9ec953028a0143eb8cddc2f32cedf2cb73b (patch)
treec24bbd043b519cb330b37014c318af00e6124b5e /lib/libkvm
parente99b1842b7ded05d5ef33489343c72ed73962b3d (diff)
downloadFreeBSD-src-8726f9ec953028a0143eb8cddc2f32cedf2cb73b.zip
FreeBSD-src-8726f9ec953028a0143eb8cddc2f32cedf2cb73b.tar.gz
Aparrently MACXOCOMLEN exisrts only on my machine
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c
index 511003f..c762932 100644
--- a/lib/libkvm/kvm_proc.c
+++ b/lib/libkvm/kvm_proc.c
@@ -407,7 +407,7 @@ nopgrp:
kp->ki_lastcpu = mtd.td_lastcpu;
kp->ki_wchan = mtd.td_wchan;
if (mtd.td_name[0] != 0)
- strlcpy(kp->ki_ocomm, mtd.td_name, MAXOCOMLEN);
+ strlcpy(kp->ki_ocomm, mtd.td_name, MAXCOMLEN);
kp->ki_oncpu = mtd.td_oncpu;
if (mtd.td_name[0] != '\0')
strlcpy(kp->ki_ocomm, mtd.td_name, sizeof(kp->ki_ocomm));
OpenPOWER on IntegriCloud