From eb59ff52bca5de3416fc25af9d2e725192308b5d Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Mon, 3 Jul 2000 05:49:11 +0000 Subject: [PATCH] Remove ':' from the end of line when in commands section. Command execution should work now from config file ok. --- apps/silc/clientconfig.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/silc/clientconfig.c b/apps/silc/clientconfig.c index 7cdd8154..d98933e2 100644 --- a/apps/silc/clientconfig.c +++ b/apps/silc/clientconfig.c @@ -20,8 +20,12 @@ /* * $Id$ * $Log$ - * Revision 1.1 2000/06/27 11:36:56 priikone - * Initial revision + * Revision 1.2 2000/07/03 05:49:11 priikone + * Remove ':' from the end of line when in commands section. Command + * execution should work now from config file ok. + * + * Revision 1.1.1.1 2000/06/27 11:36:56 priikone + * Importet from internal CVS/Added Log headers. * * */ @@ -490,7 +494,9 @@ int silc_client_config_parse_lines(SilcClientConfig config, /* Get command line (this may include parameters as well. They will be parsed later with standard command parser when executing particular command.) */ - config->commands->command = strdup(line->data); + config->commands->command = silc_calloc(strlen(line->data), + sizeof(char)); + memcpy(config->commands->command, line->data, strlen(line->data) - 1); if (ret < 0) break; -- 2.24.0