ref: 2ea2e47231bb98437dfa00908a65ca3052275f42
parent: 31294d6d9dd5f4cdb79caa07832ff4a494f74072
author: Anthony J. Bentley <[email protected]>
date: Mon Oct 5 19:58:00 EDT 2015
Avoid a pointless strcpy().
--- a/include/link/main.h
+++ b/include/link/main.h
@@ -4,6 +4,6 @@
#include "types.h"
extern SLONG fillchar;
-extern char smartlinkstartsymbol[256];
+extern char *smartlinkstartsymbol;
#endif
--- a/src/link/main.c
+++ b/src/link/main.c
@@ -22,7 +22,7 @@
SLONG options = 0;
SLONG fillchar = 0;
-char smartlinkstartsymbol[256];
+char *smartlinkstartsymbol;
char *progname;
@@ -79,7 +79,7 @@
break;
case 's':
options |= OPT_SMART_C_LINK;
- strcpy(smartlinkstartsymbol, optarg);
+ smartlinkstartsymbol = optarg;
break;
case 't':
options |= OPT_SMALL;