Taken from: https://github.com/freebsd/freebsd-ports.git Commit id: 5070672073b68be364139bc6b3a89100bd17d331
12 lines
456 B
C
12 lines
456 B
C
--- bindings.c.orig 2011-09-12 12:31:15.000000000 +0300
|
|
+++ bindings.c 2011-09-12 12:45:59.000000000 +0300
|
|
@@ -57,7 +57,8 @@
|
|
(b+1)->key = 0; /* Make last one be the terminating binding. */
|
|
|
|
/* Keep bindings sorted by command. */
|
|
- for(b--; b >= *set && strcmp(command, b->command) < 0; b--) {
|
|
+ const char *bcommand=&b->command;
|
|
+ for(b--; b >= *set && strcmp(command, bcommand) < 0; b--) {
|
|
(b+1)->key = b->key;
|
|
(b+1)->command = b->command;
|
|
}
|