]> git.pld-linux.org Git - packages/wxWidgets.git/commitdiff
- more workarounds
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Sep 2012 16:27:10 +0000 (18:27 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Sep 2012 16:27:10 +0000 (18:27 +0200)
wxWidgets-format.patch

index 1cf2ae40ce731e1af69a7b71540d09743488952e..432c7baa32b0154a0b74857059065b27c385ccd6 100644 (file)
          return false;
      }
  
+--- wxWidgets-2.8.12/src/common/imagpnm.cpp.orig       2011-03-22 12:59:41.000000000 +0100
++++ wxWidgets-2.8.12/src/common/imagpnm.cpp    2012-09-30 18:26:48.461052596 +0200
+@@ -69,7 +69,7 @@
+         case wxT('5'): // RAW Grey
+         case wxT('6'): break;
+         default:
+-            if (verbose) wxLogError(_("PNM: File format is not recognized."));
++            if (verbose) wxLogError("%s", _("PNM: File format is not recognized."));
+             return false;
+     }
+@@ -85,7 +85,7 @@
+     if (!ptr)
+     {
+         if (verbose)
+-           wxLogError( _("PNM: Couldn't allocate memory.") );
++           wxLogError("%s",  _("PNM: Couldn't allocate memory.") );
+         return false;
+     }
+@@ -103,7 +103,7 @@
+             *ptr++=(unsigned char)value; // B
+             if ( !buf_stream )
+             {
+-                if (verbose) wxLogError(_("PNM: File seems truncated."));
++                if (verbose) wxLogError("%s", _("PNM: File seems truncated."));
+                 return false;
+             }
+         }
+@@ -122,7 +122,7 @@
+             if ( !buf_stream )
+               {
+-                if (verbose) wxLogError(_("PNM: File seems truncated."));
++                if (verbose) wxLogError("%s", _("PNM: File seems truncated."));
+                 return false;
+               }
+           }
+@@ -141,7 +141,7 @@
+             *ptr++=value; // B
+             if ( !buf_stream )
+             {
+-                if (verbose) wxLogError(_("PNM: File seems truncated."));
++                if (verbose) wxLogError("%s", _("PNM: File seems truncated."));
+                 return false;
+             }
+         }
This page took 0.084939 seconds and 4 git commands to generate.