mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
Allocate correct amount of memory for strings.
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate correct amount of memory for strings.
This commit is contained in:
parent
6421c96ccc
commit
af84227184
@ -1,3 +1,8 @@
|
||||
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
|
||||
correct amount of memory for strings.
|
||||
|
||||
Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.6
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
|
||||
correct amount of memory for strings.
|
||||
|
||||
Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.6
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
|
||||
correct amount of memory for strings.
|
||||
|
||||
Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.6
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
|
||||
correct amount of memory for strings.
|
||||
|
||||
Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.6
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
|
||||
correct amount of memory for strings.
|
||||
|
||||
Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.6
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
|
||||
correct amount of memory for strings.
|
||||
|
||||
Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.6
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
|
||||
correct amount of memory for strings.
|
||||
|
||||
Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.6
|
||||
|
@ -336,12 +336,12 @@ gtk_rc_add_initial_default_files (void)
|
||||
}
|
||||
else
|
||||
{
|
||||
str = g_malloc (strlen(GTK_SYSCONFDIR) + strlen("/gtkrc"));
|
||||
str = g_malloc (strlen(GTK_SYSCONFDIR) + strlen("/gtkrc") + 1);
|
||||
sprintf (str, "%s%s", GTK_SYSCONFDIR, "/gtkrc");
|
||||
gtk_rc_add_default_file (str);
|
||||
|
||||
var = g_get_home_dir ();
|
||||
str = g_malloc (strlen(var) + strlen("/.gtkrc"));
|
||||
str = g_malloc (strlen(var) + strlen("/.gtkrc") + 1);
|
||||
sprintf (str, "%s%s", var, "/.gtkrc");
|
||||
gtk_rc_add_default_file (str);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user