"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libutil/encodepath.c" between
global-6.6.4.tar.gz and global-6.6.5.tar.gz

About: GNU GLOBAL is a source code tag system that works the same way across diverse environments. It is similar to ctags or etags, but it is independent of any editor.

encodepath.c  (global-6.6.4):encodepath.c  (global-6.6.5)
skipping to change at line 100 skipping to change at line 100
* *
* @param[in] path encoded path name * @param[in] path encoded path name
* @return decoded path name * @return decoded path name
*/ */
char * char *
decode_path(const char *path) decode_path(const char *path)
{ {
STATIC_STRBUF(sb); STATIC_STRBUF(sb);
const char *p; const char *p;
if (strchr(path, '%') == NULL)
return (char *)path;
strbuf_clear(sb); strbuf_clear(sb);
for (p = path; *p; p++) { for (p = path; *p; p++) {
if (*p == '%') { if (*p == '%') {
unsigned char c1, c2; unsigned char c1, c2;
c1 = *++p; c1 = *++p;
c2 = *++p; c2 = *++p;
if (outofrange(c1) || outofrange(c2)) if (outofrange(c1) || outofrange(c2))
die("decode_path: unexpected character. (%%%c%c)" , c1, c2); die("decode_path: unexpected character. (%%%c%c)" , c1, c2);
strbuf_putc(sb, h2int(c1) * 16 + h2int(c2)); strbuf_putc(sb, h2int(c1) * 16 + h2int(c2));
} else } else
 End of changes. 1 change blocks. 
2 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)