shithub: rgbds

Download patch

ref: 8f1ad7f9fc8fa9a219be22e2975014bb9aa4687e
parent: f0361ee025c9c32d6a960b8a7e8de09887ae2227
author: anthony <[email protected]>
date: Mon Jan 4 15:09:05 EST 2010

the -k flag wrote to the wrong location. fixing the bug

--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -457,7 +457,7 @@
 			}
 			if ((ulOptions & OPTF_DEBUG) == 0) {
 				fflush(f);
-				fseek(f, 0x13F, SEEK_SET);
+				fseek(f, 0x144, SEEK_SET);
 				fwrite(nlicensee, 2, 1, f);
 				fflush(f);
 			}