aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/devdraw/mklatinkbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/devdraw/mklatinkbd.c')
-rw-r--r--src/cmd/devdraw/mklatinkbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/devdraw/mklatinkbd.c b/src/cmd/devdraw/mklatinkbd.c
index db34b6ec..50dd26b0 100644
--- a/src/cmd/devdraw/mklatinkbd.c
+++ b/src/cmd/devdraw/mklatinkbd.c
@@ -191,7 +191,7 @@ readfile(char *fname)
r = strtol(line, nil, 16);
p = strchr(line, ' ');
- if(r == 0 || p != line+4 || p[0] != ' ' || p[1] != ' ') {
+ if(r == 0 || (p != line+4 && p != line+5) || p[0] != ' ' || (p == line+4 && p[1] != ' ')) {
fprint(2, "%s:%d: cannot parse line\n", fname, lineno);
continue;
}