api06: Fix tag parsing in the node-tags-normalization helper, as suggested by
Jon Burgess.
This commit is contained in:
parent
db52fe6923
commit
0499559f79
1 changed files with 3 additions and 2 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Reference in a new issue