summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorroot <root@vyatta-build2.(none)>2010-09-24 10:47:31 -0700
committerroot <root@vyatta-build2.(none)>2010-09-24 10:47:31 -0700
commit8dbd8a91c3bab4f34731fa3aee9dbd8af3d98faa (patch)
tree2b263bfeb2d792b9dbccda17655938f11d804d14 /src
parentff641edad56ce9e4e4c93c592b58bb8d0464c262 (diff)
downloadvyatta-cfg-8dbd8a91c3bab4f34731fa3aee9dbd8af3d98faa.tar.gz
vyatta-cfg-8dbd8a91c3bab4f34731fa3aee9dbd8af3d98faa.zip
fix for bug 6213.
old cli code uses a char to store length of a string when unescaping the string, w/o checking string length.
Diffstat (limited to 'src')
-rw-r--r--src/cli_path_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli_path_utils.c b/src/cli_path_utils.c
index 4111568..2874aeb 100644
--- a/src/cli_path_utils.c
+++ b/src/cli_path_utils.c
@@ -472,7 +472,7 @@ char *clind_unescape(const char *name)
{
const char *cp;
char *rcp, *ret;
- char len;
+ unsigned long len;
for(cp=name, len=0;*cp;++cp, ++len)
if(*cp=='%')