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