use a_str functions

This commit is contained in:
Julien Danjou 2008-01-12 23:15:28 +01:00
parent 06a86b01ea
commit 01f2f573b7
1 changed files with 7 additions and 7 deletions

View File

@ -154,7 +154,7 @@ uicb_widget_tell(int screen, char *arg)
return; return;
} }
len = strlen(arg); len = a_strlen(arg);
p = strtok(arg, " "); p = strtok(arg, " ");
if(!p) if(!p)
{ {
@ -169,11 +169,11 @@ uicb_widget_tell(int screen, char *arg)
return; return;
} }
if (p+strlen(p) < arg+len) if(p + a_strlen(p) < arg+len)
{ {
p = p + strlen(p) + 1; p = p + a_strlen(p) + 1;
command = p_new(char, strlen(p)+1); command = p_new(char, a_strlen(p) + 1);
strncpy(command, p, strlen(p)); strncpy(command, p, a_strlen(p));
widget->tell(widget, command); widget->tell(widget, command);
p_delete(&command); p_delete(&command);
} }