use a_str functions
This commit is contained in:
parent
06a86b01ea
commit
01f2f573b7
10
widget.c
10
widget.c
|
@ -154,7 +154,7 @@ uicb_widget_tell(int screen, char *arg)
|
|||
return;
|
||||
}
|
||||
|
||||
len = strlen(arg);
|
||||
len = a_strlen(arg);
|
||||
p = strtok(arg, " ");
|
||||
if(!p)
|
||||
{
|
||||
|
@ -169,11 +169,11 @@ uicb_widget_tell(int screen, char *arg)
|
|||
return;
|
||||
}
|
||||
|
||||
if (p+strlen(p) < arg+len)
|
||||
if(p + a_strlen(p) < arg+len)
|
||||
{
|
||||
p = p + strlen(p) + 1;
|
||||
command = p_new(char, strlen(p)+1);
|
||||
strncpy(command, p, strlen(p));
|
||||
p = p + a_strlen(p) + 1;
|
||||
command = p_new(char, a_strlen(p) + 1);
|
||||
strncpy(command, p, a_strlen(p));
|
||||
widget->tell(widget, command);
|
||||
p_delete(&command);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue