Avoid a pointless strcpy().

This commit is contained in:
Anthony J. Bentley
2015-10-05 23:58:00 -06:00
parent 31294d6d9d
commit 2ea2e47231
2 changed files with 3 additions and 3 deletions

View File

@@ -4,6 +4,6 @@
#include "types.h"
extern SLONG fillchar;
extern char smartlinkstartsymbol[256];
extern char *smartlinkstartsymbol;
#endif

View File

@@ -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;