amd64/84652: kbdmap -r dumps core
Vasil Dimov
vd at datamax.bg
Mon Oct 10 05:40:22 PDT 2005
The following reply was made to PR amd64/84652; it has been noted by GNATS.
From: Vasil Dimov <vd at datamax.bg>
To: bug-followup at FreeBSD.org
Cc: andreas_eder at gmx.net
Subject: Re: amd64/84652: kbdmap -r dumps core
Date: Mon, 10 Oct 2005 15:35:00 +0300
This problem is not amd64 specific,
instead it should be in the `bin' category.
parse_args() uses font_current before it is initialized.
--- kbdmap.c-r.diff begins here ---
--- usr.sbin/kbdmap/kbdmap.c.orig Mon Oct 10 15:13:05 2005
+++ usr.sbin/kbdmap/kbdmap.c Mon Oct 10 15:11:50 2005
@@ -823,12 +823,12 @@
program = extract_name(argv[0]);
- /* Parse command line arguments */
- parse_args(argc, argv);
-
font_current = get_font();
if (font_current == NULL)
font_current = font_default;
+
+ /* Parse command line arguments */
+ parse_args(argc, argv);
if (strcmp(program, "kbdmap"))
dir = fontdir;
--- kbdmap.c-r.diff ends here ---
More information about the freebsd-amd64
mailing list