[qca-ssdk] fix qca-ssdk uci issue(IR-197208)

Change-Id: I07628a8e4ad1c3feaafe1ed5dd5a0495b4cb6d64
Signed-off-by: linchen <linchen@codeaurora.org>
diff --git a/src/ref/ref_uci.c b/src/ref/ref_uci.c
index 7a1c98e..c2b5a76 100755
--- a/src/ref/ref_uci.c
+++ b/src/ref/ref_uci.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, 2015-2016, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013, 2015-2017, The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -6726,8 +6726,8 @@
         }
 
         if(i<len) {
-		strlcpy(module, name, i);
-		strlcpy(cmd, p, len-i);
+		strlcpy(module, name, i+1);
+		strlcpy(cmd, p, COMMAND_NAME_MAX_LEN);
 		return 0;
         }