updates.
[runtime.git] / lib / silcclient / client.c
index 4ea2a2d8e34d62c349b285bbfb8cfee777f6008a..300789bfa14fdb4c902742799363700c95c3d278 100644 (file)
@@ -1285,17 +1285,17 @@ char *silc_client_chmode(unsigned int mode, SilcChannelEntry channel)
     strncat(string, "a", 1);
 
   if (mode & SILC_CHANNEL_MODE_CIPHER) {
-    char cipher[50];
+    char cipher[30];
     memset(cipher, 0, sizeof(cipher));
-    snprintf(cipher, sizeof(cipher), "c (%s)", 
+    snprintf(cipher, sizeof(cipher), " c (%s)", 
             channel->channel_key->cipher->name);
     strncat(string, cipher, strlen(cipher));
   }
 
   if (mode & SILC_CHANNEL_MODE_HMAC) {
-    char hmac[50];
+    char hmac[30];
     memset(hmac, 0, sizeof(hmac));
-    snprintf(hmac, sizeof(hmac), "h (%s)", 
+    snprintf(hmac, sizeof(hmac), " h (%s)", 
             channel->hmac->hmac->name);
     strncat(string, hmac, strlen(hmac));
   }