summaryrefslogtreecommitdiff
path: root/src/shim
diff options
context:
space:
mode:
Diffstat (limited to 'src/shim')
-rw-r--r--src/shim/vyshim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shim/vyshim.c b/src/shim/vyshim.c
index e6d1d5a78..cae8b6152 100644
--- a/src/shim/vyshim.c
+++ b/src/shim/vyshim.c
@@ -81,7 +81,7 @@ int main(int argc, char* argv[])
debug_print("Connecting to vyos-configd ...\n");
zmq_connect(requester, SOCKET_PATH);
- for (int i = argc-1; i > 0 ; i--) {
+ for (int i = 1; i < argc ; i++) {
strncat(&string_node_data[0], argv[i], 127);
}