]> Pileus Git - ~andy/gtk/commitdiff
Patch from Andy Wingo to always escape ? to avoid accidentally generating
authorOwen Taylor <otaylor@redhat.com>
Tue, 1 Oct 2002 21:42:36 +0000 (21:42 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 1 Oct 2002 21:42:36 +0000 (21:42 +0000)
Tue Oct  1 17:35:43 2002  Owen Taylor  <otaylor@redhat.com>

        * gdkpixdata.c: Patch from Andy Wingo to always
        escape ? to avoid accidentally generating trigraphs
        in the output (#94631)

gdk-pixbuf/ChangeLog
gdk-pixbuf/gdk-pixdata.c

index f56c7b329409ffd1eaca1ffea77f3bfa1eb94007..1024a0d39c85360de9d71d84f7dc3e3253fcceb7 100644 (file)
@@ -1,3 +1,9 @@
+Tue Oct  1 17:35:43 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdkpixdata.c: Patch from Andy Wingo to always 
+       escape ? to avoid accidentally generating trigraphs
+       in the output (#94631)
+
 2002-09-28  Tor Lillqvist  <tml@iki.fi>
 
        * pixops/*.S: Don't use .type on Cygwin, either (#91597, Masahiro
index 1cbba1aa0c3742988b1989aa0c713f5b1ca61e90..4a5735f764dd48fce2dd9b676754c6ab44eb2140 100644 (file)
@@ -505,7 +505,7 @@ save_uchar (CSourceData *cdata,
          cdata->pad = FALSE;
        }
     }
-  if (d < 33 || d > 126)
+  if (d < 33 || d > 126 || d == '?')
     {
       APPEND (gstring, "\\%o", d);
       cdata->pos += 1 + 1 + (d > 7) + (d > 63);