api06: Fix tag parsing in the node-tags-normalization helper, as suggested by

Jon Burgess.
This commit is contained in:
Gabriel Ebner 2008-05-04 13:51:45 +00:00
parent db52fe6923
commit 0499559f79

View file

@ -45,15 +45,16 @@ static void write_csv_col(FILE *f, const char *str, char end) {
}
static void unescape(char *str) {
char *i = str, *o = str;
char *i = str, *o = str, tmp;
while (*i) {
if (*i == '\\') {
i++;
switch (*i++) {
switch (tmp = *i++) {
case 's': *o++ = ';'; break;
case 'e': *o++ = '='; break;
case '\\': *o++ = '\\'; break;
default: *o++ = tmp; break;
}
} else {
*o++ = *i++;