awesome-client: fix warning by using a_asprintf()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
99227dff1b
commit
7e6e50b1c5
|
@ -197,7 +197,7 @@ main(int argc, char **argv)
|
|||
|
||||
if(isatty(STDIN_FILENO))
|
||||
{
|
||||
asprintf(&prompt, "awesome@%s%% ", display ? display : "unknown");
|
||||
a_asprintf(&prompt, "awesome@%s%% ", display ? display : "unknown");
|
||||
while((msg = readline(prompt)))
|
||||
if((msg_len = a_strlen(msg)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue