use a_str* functions instead of str*

This commit is contained in:
Julien Danjou 2007-10-31 11:47:22 +01:00
parent ee64728f41
commit 3328104ccd
1 changed files with 2 additions and 2 deletions

View File

@ -455,7 +455,7 @@ uicb_reloadconfig(awesome_config *awesomeconf,
savetagclientsel[screen] = p_new(Client *, awesomeconf_first[screen].ntags); savetagclientsel[screen] = p_new(Client *, awesomeconf_first[screen].ntags);
for (tag = 0; tag < awesomeconf_first[screen].ntags; tag++) for (tag = 0; tag < awesomeconf_first[screen].ntags; tag++)
{ {
savetagnames[screen][tag] = strdup(awesomeconf_first[screen].tags[tag].name); savetagnames[screen][tag] = a_strdup(awesomeconf_first[screen].tags[tag].name);
savetagclientsel[screen][tag] = awesomeconf_first[screen].tags[tag].client_sel; savetagclientsel[screen][tag] = awesomeconf_first[screen].tags[tag].client_sel;
} }
} }
@ -477,7 +477,7 @@ uicb_reloadconfig(awesome_config *awesomeconf,
{ {
mapping[screen][i] = -1; mapping[screen][i] = -1;
for (j = 0; j < old_ntags[screen]; j ++) for (j = 0; j < old_ntags[screen]; j ++)
if (!strcmp(savetagnames[screen][j], awesomeconf_first[screen].tags[i].name)) if (!a_strcmp(savetagnames[screen][j], awesomeconf_first[screen].tags[i].name))
{ {
mapping[screen][i] = j; mapping[screen][i] = j;
break; break;