mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-12 20:41:34 +00:00
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:
parent
b685b0fb8c
commit
aa42706631
|
@ -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:
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue