summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 405d9d6)
raw | patch | inline | side by side (parent: 405d9d6)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 16 Sep 2008 13:38:48 +0000 (15:38 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 1 Oct 2008 07:47:37 +0000 (09:47 +0200) |
512 bytes is not enough for some perl error messages.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/plugin.c | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index fdc0425b25d393bb23d02542e2b383fff99a4298..e72561bd8e333063ff88310686fe43227b573f5a 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
void plugin_log (int level, const char *format, ...)
{
- char msg[512];
+ char msg[1024];
va_list ap;
void (*callback) (int, const char *);
#endif
va_start (ap, format);
- vsnprintf (msg, 512, format, ap);
- msg[511] = '\0';
+ vsnprintf (msg, sizeof (msg), format, ap);
+ msg[sizeof (msg) - 1] = '\0';
va_end (ap);
le = llist_head (list_log);