From 8dbd8a91c3bab4f34731fa3aee9dbd8af3d98faa Mon Sep 17 00:00:00 2001 From: root Date: Fri, 24 Sep 2010 10:47:31 -0700 Subject: 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. --- src/cli_path_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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=='%') -- cgit v1.2.3