From be4c171328fc58c693168af0ec75b177e00ea3b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Thu, 1 Jan 2009 18:19:26 +0000 Subject: [PATCH] fix send_cmd bug, patch by Rob Frohne, KL7NA git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2544 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- tests/rotctl_parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/rotctl_parse.c b/tests/rotctl_parse.c index abcba0158..02f7fd567 100644 --- a/tests/rotctl_parse.c +++ b/tests/rotctl_parse.c @@ -5,7 +5,7 @@ * It takes commands in interactive mode as well as * from command line options. * - * $Id: rotctl_parse.c,v 1.3 2008-10-27 22:23:36 fillods Exp $ + * $Id: rotctl_parse.c,v 1.4 2009-01-01 18:19:26 fillods Exp $ * * * This program is free software; you can redistribute it and/or @@ -592,12 +592,12 @@ declare_proto_rot(send_cmd) } else { strncpy(bufcmd,arg1,BUFSZ); bufcmd[BUFSZ-1] = '\0'; - cmd_len = strlen(bufcmd); /* * assumes CR is end of line char - * for all ascii protocols + * for all ascii protocols. */ strcat(bufcmd, "\r"); + cmd_len = strlen(bufcmd); } rs = &rot->state;