diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-04-08 00:12:01 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-04-08 00:12:01 +0000 |
commit | f6b29b49c0f3c8936910f62561bd84f90e3bd3e3 (patch) | |
tree | 81b41e999795c9e2807bba8d8fe2fb576cd41b9f | |
parent | 463a2397a9004430a9d21d80b123421c04695591 (diff) |
fix null deref in error syslogging
-rw-r--r-- | sbin/savecore/savecore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index 90894fae253..44c2649a2fd 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -1,4 +1,4 @@ -/* $OpenBSD: savecore.c,v 1.32 2003/04/07 23:04:06 deraadt Exp $ */ +/* $OpenBSD: savecore.c,v 1.33 2003/04/08 00:12:00 mickey Exp $ */ /* $NetBSD: savecore.c,v 1.26 1996/03/18 21:16:05 leo Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94"; #else -static char rcsid[] = "$OpenBSD: savecore.c,v 1.32 2003/04/07 23:04:06 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: savecore.c,v 1.33 2003/04/08 00:12:00 mickey Exp $"; #endif #endif /* not lint */ @@ -263,7 +263,7 @@ kmem_setup(void) if (kernel == NULL) { if (kvm_read(kd_kern, current_nl[X_VERSION].n_value, vers, sizeof(vers)) == -1) { - syslog(LOG_ERR, "%s: kvm_read: version misread", dump_sys); + syslog(LOG_ERR, "%s: kvm_read: version misread", _PATH_UNIX); exit(1); } vers[sizeof(vers) - 1] = '\0'; |