opnsense-ports/security/ckpass/files/patch-bindings.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01: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;
}