diff options
author | Adam Jackson <ajax@redhat.com> | 2009-05-07 16:31:39 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2009-05-07 16:31:39 -0400 |
commit | 33b839e16fe681ba915658f824ceb1b252084ea4 (patch) | |
tree | 5e831dec53ce9197d733d6b1f21713d51f75f039 /src/xkbconfig.c | |
parent | 4f8dd1aa10a36700bf1f2b05931cd29151b9fee4 (diff) |
s/_XkbDupString/strdup/
Super special bonus lols edition: _XkbDupString would allocate the new
string with calloc, just to be extra sure.
Diffstat (limited to 'src/xkbconfig.c')
-rw-r--r-- | src/xkbconfig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xkbconfig.c b/src/xkbconfig.c index 37272ce..dd04e81 100644 --- a/src/xkbconfig.c +++ b/src/xkbconfig.c @@ -377,7 +377,7 @@ XkbCFAddModByName( XkbConfigRtrnPtr rtrn, last->merge= merge; last->name= NULL; } - last->name= _XkbDupString(name); + last->name= strdup(name); } return last; } @@ -501,7 +501,7 @@ unsigned what; } if (*str!=NULL) _XkbFree(*str); - *str= _XkbDupString(val.str); + *str= strdup(val.str); break; case _XkbCF_InitialMods: case _XkbCF_IgnoreLockMods: @@ -1060,7 +1060,7 @@ DefaultFinish( XkbConfigFieldsPtr fields, return DefaultCleanUp(rtrn); if (what==XkbCF_Check) { if ((rtrn->symbols==NULL)&&(rtrn->phys_symbols!=NULL)) - rtrn->symbols= _XkbDupString(rtrn->phys_symbols); + rtrn->symbols= strdup(rtrn->phys_symbols); } if ((what==XkbCF_Apply)||(what==XkbCF_Check)) { if (xkb && xkb->names && (rtrn->num_unbound_mods>0)) |