diff options
author | emaste <emaste@FreeBSD.org> | 2015-05-21 01:50:06 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2015-05-21 01:50:06 +0000 |
commit | f1d984d9772f5088101612e037ca301af111523a (patch) | |
tree | 0d257491249e2aa44fcae76685bd1ac24425e4f7 | |
parent | 83f65364f27f0614db609eb225c2fa8dcfb4a2ad (diff) | |
download | FreeBSD-src-f1d984d9772f5088101612e037ca301af111523a.zip FreeBSD-src-f1d984d9772f5088101612e037ca301af111523a.tar.gz |
MFC r282904: kbdmap(1): increase description size to 256 bytes
After conversion to UTF-8 some INDEX.keymaps descriptions are longer
than the previous limit of 64 bytes.
PR: 193656
-rw-r--r-- | usr.sbin/kbdmap/kbdmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/kbdmap/kbdmap.c b/usr.sbin/kbdmap/kbdmap.c index bf2aa81..08c0d77 100644 --- a/usr.sbin/kbdmap/kbdmap.c +++ b/usr.sbin/kbdmap/kbdmap.c @@ -571,7 +571,7 @@ menu_read(void) char *p; int mark, num_keymaps, items, i; char buffer[256], filename[PATH_MAX]; - char keym[64], lng[64], desc[64]; + char keym[64], lng[64], desc[256]; char dialect[64], lang_abk[64]; struct keymap *km; struct keymap **km_sorted; @@ -616,7 +616,7 @@ menu_read(void) continue; /* Parse input, removing newline */ - matches = sscanf(p, "%64[^:]:%64[^:]:%64[^:\n]", + matches = sscanf(p, "%64[^:]:%64[^:]:%256[^:\n]", keym, lng, desc); if (matches == 3) { if (strcmp(keym, "FONT") |