diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-19 17:28:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-19 17:28:21 +0000 |
commit | 5a5e285be8caf98c7777a2afa717d04ac44c9f75 (patch) | |
tree | 21a8023980205ae4bbf48a8f987a16661d08bcb1 /cfg.c | |
parent | 4d1d4d6e8eb40f21eea851461ea2166242b3409f (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
@@ -105,7 +105,7 @@ load_cfg(const char *path, struct cmd_ctx *ctx, 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) { |