projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Strings.h (sigh) and a small bug.
[unix-history]
/
usr
/
src
/
usr.bin
/
tn3270
/
tools
/
mkastosc
/
mkastosc.c
diff --git
a/usr/src/usr.bin/tn3270/tools/mkastosc/mkastosc.c
b/usr/src/usr.bin/tn3270/tools/mkastosc/mkastosc.c
index
8973ef6
..
dbd1fbb
100644
(file)
--- a/
usr/src/usr.bin/tn3270/tools/mkastosc/mkastosc.c
+++ b/
usr/src/usr.bin/tn3270/tools/mkastosc/mkastosc.c
@@
-17,7
+17,7
@@
*/
#include <stdio.h>
*/
#include <stdio.h>
-#include <string.h>
+#include <string
s
.h>
#include <ctype.h>
#define LETS_SEE_ASCII
#include <ctype.h>
#define LETS_SEE_ASCII
@@
-83,7
+83,7
@@
char *argv[];
for (i = 0; i < 4; i++) {
if (ph->hit[i].ctlrfcn == FCN_CHARACTER) {
c = Ph->name[i][0]; /* "name" of this one */
for (i = 0; i < 4; i++) {
if (ph->hit[i].ctlrfcn == FCN_CHARACTER) {
c = Ph->name[i][0]; /* "name" of this one */
- if (
tbl[c].shift[0] == 0
) {
+ if (
(tbl[c].shift == 0) || (tbl[c].shift[0] == 0)
) {
tbl[c].shift = shiftof[i];
tbl[c].scancode = scancode;
}
tbl[c].shift = shiftof[i];
tbl[c].scancode = scancode;
}