awesome-client: fix warning by using a_asprintf()

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Roland Kammerer 2008-12-29 18:57:43 +01:00 committed by Julien Danjou
parent 99227dff1b
commit 7e6e50b1c5
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ main(int argc, char **argv)
if(isatty(STDIN_FILENO)) if(isatty(STDIN_FILENO))
{ {
asprintf(&prompt, "awesome@%s%% ", display ? display : "unknown"); a_asprintf(&prompt, "awesome@%s%% ", display ? display : "unknown");
while((msg = readline(prompt))) while((msg = readline(prompt)))
if((msg_len = a_strlen(msg))) if((msg_len = a_strlen(msg)))
{ {