Permalink
Browse files

bugfix: dynamic path not end up with '\0'

  • Loading branch information...
1 parent 639ea7b commit f7962aaa9e1b48107b13ca553f0ac1c21eedd6e8 @HardySimpson committed Jul 17, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −1 configure.ac
  2. +2 −0 libzlog/rule.c
View
@@ -1,5 +1,5 @@
AC_PREREQ(2.59)
-AC_INIT([zlog], [1.1.1], [HardySimpson1984@gmail.com])
+AC_INIT([zlog], [1.1.2], [HardySimpson1984@gmail.com])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AC_CONFIG_SRCDIR([libzlog/zlog.h])
AC_CONFIG_HEADER([config.h])
View
@@ -192,6 +192,8 @@ static int zlog_rule_gen_path(zlog_rule_t * a_rule, zlog_thread_t * a_thread)
}
}
+ zlog_buf_seal(a_thread->path_buf); /* path must end with \0 */
+
return 0;
}

0 comments on commit f7962aa

Please sign in to comment.