Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 1996 18:24:30 +0100 (MET)
From:      Juergen Lock <nox@jelal.hb.north.de>
To:        msmith@atrad.adelaide.edu.au (Michael Smith)
Cc:        emulation@freebsd.org, luigi@labinfo.iet.unipi.it, babkin@hq.icb.chel.su
Subject:   Re: Chistmas-edition PC-Emu
Message-ID:  <199612291724.SAA01064@saturn.hb.north.de>
In-Reply-To: <199612200739.SAA07816@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Dec 20, 96 06:09:22 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Smith writes:

>   ftp://gsoft.com.au/pub/pcemu1.93pre.tar.gz

Here is a little patch that gets the hex keymap working again.

Index: main.c
@@ -101,13 +101,13 @@
 static char *
 set_keymap(char *buf)
 {
-    char c;
+    unsigned char c;
     int code, chx;
     
     if(sscanf(buf, "%i=%c", &code, &c) != 2)
 	return "usage: keymap code=char";
     /* handle 0x... (== hex) */
-    if(c == '0' && sscanf(buf, " %*s %*i=%i", &chx) == 1)
+    if(c == '0' && sscanf(buf, "%*i=%i", &chx) == 1)
 	c = chx;
 
     if(c < ' ' || c >= ' ' + sizeof scan_table1)

 cheers
	Juergen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612291724.SAA01064>