diff --git a/eris.c b/eris.c index 597190a..da99dc5 100644 --- a/eris.c +++ b/eris.c @@ -939,7 +939,7 @@ handle_request() char fn[PATH_MAX]; if (host) { - strncpy(fn, host, sizeof fn); + snprintf(fn, sizeof(fn), "%s", host); } else { fn[0] = 0; }