Allow partial command strings in comparison.
authorPekka Riikonen <priikone@silcnet.org>
Tue, 18 Jul 2000 06:53:15 +0000 (06:53 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 18 Jul 2000 06:53:15 +0000 (06:53 +0000)
apps/silc/Makefile.am
apps/silc/client.c

index b32913b88a92f70063bf243748437523ef3baa80..982a17b2c95b75f7ae84a6de436aca4a4c780a0b 100644 (file)
@@ -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
 
index d96dd993706fed72f1146062ff25a9cb3b6b7ce0..f6555185d9c0328846587f637e83041563be1c12 100644 (file)
@@ -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;
     }