changeset 1710:1f0fac3af8e3

Use buf->len instead of tmp.len, as it might not be initialized.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 06 Jun 2018 14:26:49 +0300
parents 2b592df78943
children 4fd94bf558b3
files tools/lib64gfx.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64gfx.c	Wed Jun 06 14:24:10 2018 +0300
+++ b/tools/lib64gfx.c	Wed Jun 06 14:26:49 2018 +0300
@@ -1272,7 +1272,7 @@
             return DMERR_NOT_SUPPORTED;
     }
 
-    if (loadOffs >= tmp.len)
+    if (loadOffs >= buf->len)
         return DMERR_INVALID_ARGS;
 
     if (*fmt == NULL)