diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-27 20:32:42 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-27 20:33:14 -0700 |
commit | e144ec9018cabd1d9904fb6d04382d2cf06ec3dc (patch) | |
tree | 041c96a632cb2081935d5aedb664775596d7d2f1 /psgeom.c | |
parent | cefec39d93846c2d034be9a89f48466831eddde6 (diff) |
Replace uStringDup() with direct calls to strdup()
strdup is available in Unix98 and later, so part of the X.Org base
platform requirements.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'psgeom.c')
-rw-r--r-- | psgeom.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -409,9 +409,9 @@ CrackXLFDName(const char *name, FontStuff *stuff) if ((name == NULL) || (stuff == NULL)) return False; if (name[0] == '-') - tmp = uStringDup(&name[1]); + tmp = strdup(&name[1]); else - tmp = uStringDup(name); + tmp = strdup(name); if (tmp == NULL) return False; stuff->foundry = tmp; @@ -1019,7 +1019,7 @@ PSDoodad(FILE *out, PSState *state, XkbDoodadPtr doodad) char *tmp, *buf, *end; int offset = (leading * 8 / 10); - tmp = buf = uStringDup(doodad->text.text); + tmp = buf = strdup(doodad->text.text); while (tmp != NULL) { end = strchr(tmp, '\n'); if (end != NULL) |