with KeePass 1.x format databases. WWW: http://ckpass.sourceforge.net/ PR: ports/160676 Submitted by: Gvozdikov Veniamin <g.veniamin@googlemail.com> Approved by: miwi, wen (mentors implicit)
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;
|
|
}
|