diff options
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -514,6 +514,8 @@ fmt_sbuf(const char *fmt, struct client *c, const char *path) strlcat(c->sbuf, "%", sizeof(c->sbuf)); break; case 'p': + if (*path != '/') + strlcat(c->sbuf, "/", sizeof(c->sbuf)); strlcat(c->sbuf, path, sizeof(c->sbuf)); break; case 'q': |