From 3b1a9784886b5dcbe52df8d4b183fac05b7ad2cb Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Tue, 18 Jul 2000 06:53:15 +0000 Subject: [PATCH] Allow partial command strings in comparison. --- apps/silc/Makefile.am | 1 + apps/silc/client.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/silc/Makefile.am b/apps/silc/Makefile.am index b32913b8..982a17b2 100644 --- a/apps/silc/Makefile.am +++ b/apps/silc/Makefile.am @@ -32,6 +32,7 @@ silc_SOURCES = \ screen.c LDADD = -L. -L.. -L../lib -lsilc -lcurses +#LDADD = -L. -L.. -L../lib -lsilc -lcurses -L../lib/silcmath/gmp-3.0.1/lib -lgmp EXTRA_DIST = *.h diff --git a/apps/silc/client.c b/apps/silc/client.c index d96dd993..f6555185 100644 --- a/apps/silc/client.c +++ b/apps/silc/client.c @@ -20,6 +20,9 @@ /* * $Id$ * $Log$ + * Revision 1.10 2000/07/18 06:53:15 priikone + * Allow partial command strings in comparison. + * * Revision 1.9 2000/07/14 06:13:19 priikone * Moved all the generic packet sending, encryption, reception, * decryption and processing functions to library as they were @@ -488,7 +491,7 @@ static void silc_client_process_message(SilcClient client) /* Find command match */ for (cmd = silc_command_list; cmd->name; cmd++) { - if (!strcmp(cmd->name, tmpcmd)) + if (!strncmp(cmd->name, tmpcmd, strlen(tmpcmd))) break; } -- 2.24.0