]> git.saurik.com Git - apple/shell_cmds.git/blobdiff - w/w.c
shell_cmds-34.tar.gz
[apple/shell_cmds.git] / w / w.c
diff --git a/w/w.c b/w/w.c
index 7e52c79624b3513cf648fcbb1c16a4c95ed7d95a..e94fc0f9d240590a4e50b10b4f831cc534a0f52c 100644 (file)
--- a/w/w.c
+++ b/w/w.c
@@ -188,7 +188,7 @@ main(argc, argv)
        else
                (void)setegid(egid);
 
-       if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf)) == NULL)
+       if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf)) == NULL)
                errx(1, "%s", errbuf);
 
        /* get rid of it now anyway */