diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2013-03-22 10:41:57 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2013-03-22 10:41:57 +0000 |
commit | 8c545bbfa8a9fd984437a61c3f0556822ad6ad92 (patch) | |
tree | ee8fba05157b826616ac10db140c5de66d6f09de /cfg.c | |
parent | f19836550b70b447d6842e8da6cb32d559436c4b (diff) |
Don't try to print unterminated strings when loading configuration file.
Diffstat (limited to 'cfg.c')
-rw-r--r-- | cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -97,7 +97,7 @@ load_cfg(const char *path, struct cmd_ctx *ctxin, struct causelist *causes) /* Trim \n. */ if (buf[len - 1] == '\n') len--; - log_debug ("%s: %s", path, buf); + log_debug("%s: %.*s", path, (int)len, buf); /* Current line is the continuation of the previous one. */ if (line != NULL) { |