diff options
author | okan | 2015-06-08 15:34:03 +0000 |
---|---|---|
committer | okan | 2015-06-08 15:34:03 +0000 |
commit | b197a78e9d8c8f152ead9b1266aff382991ea7a3 (patch) | |
tree | db7b4a41f1b1a85a88995742a7654d9f22853b31 /search.c | |
parent | a9121c4a3d2d0952061f7cf9d9f32460be6f0601 (diff) | |
download | cwm-b197a78e9d8c8f152ead9b1266aff382991ea7a3.tar.gz |
add client label
Diffstat (limited to '')
-rw-r--r-- | search.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: search.c,v 1.42 2015/01/19 14:54:16 okan Exp $ + * $OpenBSD: search.c,v 1.43 2015/06/08 15:34:03 okan Exp $ */ #include <sys/types.h> @@ -143,8 +143,9 @@ search_print_client(struct menu *mi, int list) if (list) cc->matchname = cc->name; - (void)snprintf(mi->print, sizeof(mi->print), "(%d) %c%s", - cc->group ? cc->group->num : 0, flag, cc->matchname); + (void)snprintf(mi->print, sizeof(mi->print), "(%d) %c[%s] %s", + cc->group ? cc->group->num : 0, flag, + cc->label ? cc->label : "", cc->matchname); if (!list && cc->matchname != cc->name && strlen(mi->print) < sizeof(mi->print) - 1) { |