summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--staging/tools.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/staging/tools.c b/staging/tools.c
index 96f0bb7..be8eace 100644
--- a/staging/tools.c
+++ b/staging/tools.c
@@ -684,9 +684,10 @@ int get_mpls_params(char *p)
tx.mpls_exp = 0;
tx.mpls_ttl = 255;
-
+
strncpy(params, p, 256);
-
+ params[255] = '\0';
+
if (strncmp(params,"help",4)==0)
{
fprintf(stderr,"\n"