freebsd-ports/security/ckpass/files/patch-bindings.c
Pawel Pekala 3c1d542050 An ncurses based password database client that is compatible
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)
2011-09-17 21:47:23 +00:00

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;
}