aboutsummaryrefslogtreecommitdiffstats
path: root/x11/eterm/files/patch-src_options.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/eterm/files/patch-src_options.c')
-rw-r--r--x11/eterm/files/patch-src_options.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/x11/eterm/files/patch-src_options.c b/x11/eterm/files/patch-src_options.c
new file mode 100644
index 00000000000..af9f0765545
--- /dev/null
+++ b/x11/eterm/files/patch-src_options.c
@@ -0,0 +1,17 @@
+
+$FreeBSD$
+
+--- src/options.c.orig
++++ src/options.c
+@@ -3832,7 +3832,10 @@
+ }
+ #ifdef CUTCHAR_OPTION
+ if (rs_cutchars) {
+- fprintf(fp, " cut_chars '%s'\n", rs_cutchars);
++ spif_charptr_t cut_chars_escaped;
++
++ cut_chars_escaped = escape_string(SPIF_CAST(charptr) rs_cutchars, '\"', 0);
++ fprintf(fp, " cut_chars \"%s\"\n", (char *) cut_chars_escaped);
+ }
+ #endif
+ fprintf(fp, "end misc\n\n");