comparison src/lib/strescape.c @ 9483:464116e1d0ae HEAD

str_append_unescaped() didn't unescape \\ correctly. The function wasn't used anywhere in Dovecot though.
author Timo Sirainen <tss@iki.fi>
date Tue, 16 Jun 2009 13:39:40 -0400
parents 2dcf2f313329
children 5a6fe52a0cfc
comparison
equal deleted inserted replaced
9482:d4ad8009a18b 9483:464116e1d0ae
42 break; 42 break;
43 } 43 }
44 44
45 str_append_n(dest, src_c + start, i-start); 45 str_append_n(dest, src_c + start, i-start);
46 46
47 if (i < src_size) 47 if (i < src_size) {
48 i++; 48 if (++i == src_size)
49 break;
50 str_append_c(dest, src_c[i++]);
51 }
49 start = i; 52 start = i;
50 } 53 }
51 } 54 }
52 55
53 char *str_unescape(char *str) 56 char *str_unescape(char *str)