mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 12:15:39 +00:00
Avoid a pointless strcpy().
This commit is contained in:
1 parent
31294d6d9d
commit
2ea2e47231
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -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