(current_minor_maps): Fixed resizing of cmm_maps;
authorKim F. Storm <storm@cua.dk>
Fri, 10 May 2002 23:57:14 +0000 (23:57 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 10 May 2002 23:57:14 +0000 (23:57 +0000)
commitcd6db61a7a01b56a43cd13c1217239c9738f028d
treea3adb05ef31a925241ecd21f4539b7c9b11df301
parent6d8c02ae83f2b76051135c4e62a84c33ec967037
(current_minor_maps): Fixed resizing of cmm_maps;
only update cmm_size if realloc actually succeeds.
Testing with initial size of 2 elements revealed that using
realloc on GNU/Linux would cause a random trap in xmalloc
later on, so I rewrote the code to use malloc/bcopy/free instead
of realloc.
src/keymap.c