Commit aa427066 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

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
parent b685b0fb
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:
......
......@@ -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';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment