Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
service: use --- prefix for disabled services in GUI
  • Loading branch information
perexg committed Dec 4, 2014
1 parent 6391e7b commit c65dfa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service.c
Expand Up @@ -1574,7 +1574,7 @@ service_get_channel_name ( service_t *s )
const char *
service_get_full_channel_name ( service_t *s )
{
static char __thread buf[256];
static char buf[256];
const char *r = NULL;
int len;

Expand All @@ -1591,7 +1591,7 @@ service_get_full_channel_name ( service_t *s )
buf[len++] = '/';
buf[len] = '\0';
if (len < sizeof(buf))
snprintf(buf + len, sizeof(buf) - len, "%s", r);
snprintf(buf + len, sizeof(buf) - len, "%s%s", !s->s_enabled ? "---" : "", r);
return buf;
}

Expand Down

0 comments on commit c65dfa1

Please sign in to comment.