]> granicus.if.org Git - yasm/commitdiff
win64-except.c: Fix incorrect dereference.
authorPeter Johnson <peter@tortall.net>
Fri, 19 Aug 2011 17:12:15 +0000 (10:12 -0700)
committerPeter Johnson <peter@tortall.net>
Fri, 19 Aug 2011 17:14:31 +0000 (10:14 -0700)
Reported by: Pierre Muller

[#236 state:resolved]

modules/objfmts/coff/win64-except.c

index 32ef919a34c7eeeb883841e7cbb9a0b57505df29..71d6228b0bf99dd9d35d38e72d4baed5d8c9d978 100644 (file)
@@ -296,7 +296,7 @@ win64_uwinfo_bc_tobytes(yasm_bytecode *bc, unsigned char **bufp,
         YASM_WRITE_8(buf, 1);
 
     /* Size of prolog */
-    output_value(&info->prolog_size, buf, 1, (unsigned long)(buf-*bufstart),
+    output_value(&info->prolog_size, buf, 1, (unsigned long)(buf-bufstart),
                  bc, 1, d);
     buf += 1;