summaryrefslogtreecommitdiff
path: root/src/shim
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-03-25 16:53:33 -0500
committerJohn Estabrook <jestabro@vyos.io>2021-03-25 16:53:33 -0500
commitb3d914edcb506bb25c3798683cda341b8acbb0ad (patch)
tree06ff4a1629e57420fbdedabda21a7e5c5ba5be6e /src/shim
parenta030eeb81b0f637f248c19353e36bead4938eb1d (diff)
downloadvyos-1x-b3d914edcb506bb25c3798683cda341b8acbb0ad.tar.gz
vyos-1x-b3d914edcb506bb25c3798683cda341b8acbb0ad.zip
configd: T3426: add support for script arguments to vyos-configd
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);
}