diff options
Diffstat (limited to 'src/client.c')
-rw-r--r-- | src/client.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client.c b/src/client.c index 4c8a0491..37691283 100644 --- a/src/client.c +++ b/src/client.c @@ -60,3 +60,9 @@ char *client_list_to_string(struct core *c) { return strbuf_tostring_free(s); } + +void client_rename(struct client *c, const char *name) { + assert(c); + free(c->name); + c->name = name ? strdup(name) : NULL; +} |