shithub: rgbds

Download patch

ref: 284600ef1f634fd21b3e8daac345015cbb76b560
parent: 2bf31870a7b9be374e24c20aaac13985b5e33f67
author: Anthony J. Bentley <[email protected]>
date: Tue Sep 23 18:17:43 EDT 2014

rgblink: Don't allocate unnecessary buffer. Delete unused flag.

--- a/src/link/output.c
+++ b/src/link/output.c
@@ -7,8 +7,7 @@
 #include "link/main.h"
 #include "link/assign.h"
 
-char tzOutname[_MAX_PATH];
-BBOOL oOutput = 0;
+char *tzOutname;
 
 void 
 writehome(FILE * f)
@@ -71,8 +70,7 @@
 void 
 out_Setname(char *tzOutputfile)
 {
-	strcpy(tzOutname, tzOutputfile);
-	oOutput = 1;
+	tzOutname = tzOutputfile;
 }
 
 void