]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Don't add \n to chronyc command line arguments
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 7 Apr 2011 14:17:58 +0000 (16:17 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 7 Apr 2011 14:17:58 +0000 (16:17 +0200)
This fixes parsing of some commands.

client.c

index 0bee9092aea0cf84ca8bdefdc2a6bd44ec442196..43a9b7c32dec0c14ce0516e25a89ecf7614e9a83 100644 (file)
--- a/client.c
+++ b/client.c
@@ -2621,8 +2621,6 @@ process_args(int argc, char **argv, int multi)
       }
     }
 
-    strcat(line, "\n");
-
     ret = process_line(line, &quit);
     if (!ret)
       break;