summaryrefslogtreecommitdiff
path: root/src/sym.c
diff options
context:
space:
mode:
authorMichael McConville <mmcconville@mykolab.com>2015-12-05 17:42:40 -0500
committerMichael McConville <mmcconville@mykolab.com>2015-12-05 17:42:40 -0500
commit3a1d84cfc0988a3dbdba7a440571e987cb68973a (patch)
treeba21703f11c3ee99a7c8e5b8d1a161d0a9b21f2c /src/sym.c
parenta562291415922732e22cd23cd330901ffa57db45 (diff)
Replace copy_unsigned_string() with xstrdup().
Like copy_string(), copy_unsigned_string() is just a clone of the stlib's strdup(). We only use it twice. I'm pretty confident that char signedness is irrelevant in this case.
Diffstat (limited to 'src/sym.c')
-rw-r--r--src/sym.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sym.c b/src/sym.c
index e6f556c..8d6b278 100644
--- a/src/sym.c
+++ b/src/sym.c
@@ -120,7 +120,7 @@ void cclinstal (unsigned char ccltxt[], int cclnum)
* called unless the symbol is new.
*/
- (void) addsym ((char *) copy_unsigned_string (ccltxt),
+ (void) addsym (xstrdup(ccltxt),
(char *) 0, cclnum, ccltab, CCL_HASH_SIZE);
}
@@ -182,7 +182,7 @@ void ndinstal (const char *name, unsigned char definition[])
{
if (addsym (xstrdup(name),
- (char *) copy_unsigned_string (definition), 0,
+ xstrdup(definition), 0,
ndtbl, NAME_TABLE_HASH_SIZE))
synerr (_("name defined twice"));
}