gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r10516: Fix backward comparison in g


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10516: Fix backward comparison in getFileType
Date: Wed, 07 Jan 2009 22:22:56 +0100
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10516
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Wed 2009-01-07 22:22:56 +0100
message:
  Fix backward comparison in getFileType
modified:
  libcore/impl.cpp
=== modified file 'libcore/impl.cpp'
--- a/libcore/impl.cpp  2009-01-05 09:32:03 +0000
+++ b/libcore/impl.cpp  2009-01-07 21:22:56 +0000
@@ -358,7 +358,7 @@
 
     char buf[3];
     
-    if (3 < in.read(buf, 3))
+    if (3 > in.read(buf, 3))
     {
         log_error(_("Can't read file header"));
         in.seek(0);
@@ -402,7 +402,7 @@
     // Check if it is an swf embedded in a player (.exe-file)
     if (std::equal(buf, buf + 2, "MZ")) {
 
-        if ( 3 < in.read(buf, 3) )
+        if ( 3 > in.read(buf, 3) )
         {
             log_error(_("Can't read 3 bytes after an MZ (.exe) header"));
             in.seek(0);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]