Make space for terminating zero

2009-01-13  Alexander Larsson  <alexl@redhat.com>

        * libnautilus-private/nautilus-debug-log.c:
        (nautilus_debug_logv):
	Make space for terminating zero



svn path=/trunk/; revision=14854
This commit is contained in:
Alexander Larsson 2009-01-13 13:17:55 +00:00 committed by Alexander Larsson
parent b685b0fb8c
commit aa42706631
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2009-01-13 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-debug-log.c:
(nautilus_debug_logv):
Make space for terminating zero
2009-01-13 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-debug-log.c:

View file

@ -197,7 +197,7 @@ nautilus_debug_logv (gboolean is_milestone, const char *domain, const GList *uri
}
debug_str_len = strlen (debug_str);
new_str = g_new (char, debug_str_len + 1 + uris_len); /* plus 1 for newline */
new_str = g_new (char, debug_str_len + 1 + uris_len + 1); /* plus 1 for newline & zero */
p = g_stpcpy (new_str, debug_str);
*p++ = '\n';