diff options
author | root <root@vyatta-build2.(none)> | 2010-09-24 10:47:31 -0700 |
---|---|---|
committer | root <root@vyatta-build2.(none)> | 2010-09-24 10:47:31 -0700 |
commit | 8dbd8a91c3bab4f34731fa3aee9dbd8af3d98faa (patch) | |
tree | 2b263bfeb2d792b9dbccda17655938f11d804d14 /src | |
parent | ff641edad56ce9e4e4c93c592b58bb8d0464c262 (diff) | |
download | vyatta-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.c | 2 |
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=='%') |