pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2009-04-10
2009-04-10 11:41:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>
a66b81af403af98846254d9e37ff3828ad72c089 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed quoting issue for DEL in string_builder_quote_string().
Rev: src/stralloc.c:1.235
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: stralloc.c,v 1.
234
2009/
01
/
06
10:
04
:
24
srb
Exp $
+
|| $Id: stralloc.c,v 1.
235
2009/
04
/
10
11
:
41
:
39
grubba
Exp $
*/ #include "global.h"
2552:
/* Printable character or DEL. */ if (ch == '\177') { /* DEL */
-
string_builder_binary_strcat(buf, "\\177", 4);
-
goto
next
;
+
goto
ctrl_char
;
} else if ((ch == '"') || (ch == '\\')) { string_builder_putchar(buf, '\\'); } string_builder_putchar(buf, ch); } else {
-
+
ctrl_char:
p_wchar2 next_ch; /* Control character. */ string_builder_putchar(buf, '\\');