amd64_segfault.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. diff --exclude-from=/home/dang/bin/scripts/diffrc -up -ruN gcolor2-0.4.orig/src/callbacks.c gcolor2-0.4/src/callbacks.c
  2. --- gcolor2-0.4.orig/src/callbacks.c 2005-07-12 14:06:12.000000000 -0400
  3. +++ gcolor2-0.4/src/callbacks.c 2007-02-17 19:19:38.000000000 -0500
  4. @@ -4,6 +4,9 @@
  5. #include <gtk/gtk.h>
  6. #include <stdio.h>
  7. +#include <string.h>
  8. +#include <glib.h>
  9. +#include <glib/gprintf.h>
  10. #include "callbacks.h"
  11. #include "interface.h"
  12. @@ -172,6 +175,9 @@ void on_copy_color_to_clipboard_activate
  13. gtk_clipboard_set_text (cb, hex, strlen (hex));
  14. }
  15. +void add_rgb_file (gchar *filename, gchar *type);
  16. +gchar* get_system_file (void);
  17. +
  18. void on_show_system_colors_activate (GtkMenuItem *menuitem, gpointer user_data)
  19. {
  20. if (gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (menuitem)))
  21. @@ -266,6 +272,8 @@ void on_save_button_clicked (GtkButton *
  22. gtk_widget_destroy (savedialog);
  23. }
  24. +void add_list_color (gchar *spec, gchar *name, gchar *type, gboolean is_new_color);
  25. +
  26. void add_color_to_treeview ()
  27. {
  28. GtkTreeView *treeview;
  29. diff --exclude-from=/home/dang/bin/scripts/diffrc -up -ruN gcolor2-0.4.orig/src/main.c gcolor2-0.4/src/main.c
  30. --- gcolor2-0.4.orig/src/main.c 2005-07-11 10:55:49.000000000 -0400
  31. +++ gcolor2-0.4/src/main.c 2007-02-17 19:18:23.000000000 -0500
  32. @@ -4,6 +4,10 @@
  33. #include <gtk/gtk.h>
  34. #include <stdio.h>
  35. +#include <stdlib.h>
  36. +#include <string.h>
  37. +#include <glib.h>
  38. +#include <glib/gprintf.h>
  39. #include "interface.h"
  40. #include "support.h"