mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Avoid a pointless strcpy().
This commit is contained in:
@@ -4,6 +4,6 @@
|
|||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
extern SLONG fillchar;
|
extern SLONG fillchar;
|
||||||
extern char smartlinkstartsymbol[256];
|
extern char *smartlinkstartsymbol;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ enum eBlockType {
|
|||||||
|
|
||||||
SLONG options = 0;
|
SLONG options = 0;
|
||||||
SLONG fillchar = 0;
|
SLONG fillchar = 0;
|
||||||
char smartlinkstartsymbol[256];
|
char *smartlinkstartsymbol;
|
||||||
|
|
||||||
char *progname;
|
char *progname;
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ main(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
options |= OPT_SMART_C_LINK;
|
options |= OPT_SMART_C_LINK;
|
||||||
strcpy(smartlinkstartsymbol, optarg);
|
smartlinkstartsymbol = optarg;
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
options |= OPT_SMALL;
|
options |= OPT_SMALL;
|
||||||
|
|||||||
Reference in New Issue
Block a user