Explorar el Código

Fix absolutely potato brain bug

Billy Barrow hace 1 año
padre
commit
83f81267ff
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/lib/Collections/BinaryData.vala

+ 1 - 1
src/lib/Collections/BinaryData.vala

@@ -288,7 +288,7 @@ namespace Invercargill {
             if(data.length == 0) {
                 throw new BinaryDataReadError.EMPTY_READ("Encounterd zero-length data object");
             }
-            if(amount > data.length) {
+            if(data.length > amount) {
                 throw new BinaryDataReadError.BUFFER_OVERFLOW("Encountered more data than requested");
             }