mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-03 04:16:43 +00:00
fix command listing for top level CLI commands (issue #5416)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6740 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
cli.c
2
cli.c
@@ -949,7 +949,7 @@ static void join(char *dest, size_t destsize, char *w[], int tws)
|
|||||||
strncat(dest, " ", destsize - strlen(dest) - 1);
|
strncat(dest, " ", destsize - strlen(dest) - 1);
|
||||||
strncat(dest, w[x], destsize - strlen(dest) - 1);
|
strncat(dest, w[x], destsize - strlen(dest) - 1);
|
||||||
}
|
}
|
||||||
if (tws)
|
if (tws && !ast_strlen_zero(dest))
|
||||||
strncat(dest, " ", destsize - strlen(dest) - 1);
|
strncat(dest, " ", destsize - strlen(dest) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user