]> git.pld-linux.org Git - packages/xchat.git/blob - xchat-fix64bit.patch
- BR: pkgconfig
[packages/xchat.git] / xchat-fix64bit.patch
1 # fixes 64bit issues (where a pointer to int was given, instead of gsize).
2 --- xchat-2.0.5/src/common/server.c     2003-08-11 01:40:15.000000000 +1000
3 +++ xchat-2.0.6/src/common/server.c     2003-10-07 14:54:26.000000000 +1000
4 @@ -289,8 +289,8 @@
5                 {
6                         char *conv_line; /* holds a copy of the original string */
7                         int conv_len; /* tells g_convert how much of line to convert */
8 -                       int utf_len;
9 -                       int read_len;
10 +                       gsize utf_len;
11 +                       gsize read_len;
12                         GError *err;
13                         gboolean retry;
14  
15 --- xchat-2.0.5/src/common/text.c       2003-09-21 20:36:15.000000000 +1000
16 +++ xchat-2.0.6/src/common/text.c       2003-10-07 15:01:06.000000000 +1000
17 @@ -446,7 +446,7 @@
18  get_stamp_str (char *fmt, time_t tim, char **ret)
19  {
20         char dest[128];
21 -       int len;
22 +       gsize len;
23  
24         len = strftime (dest, sizeof (dest), fmt, localtime (&tim));
25         if (len)
26 --- xchat-2.0.5/src/fe-gtk/xtext.c      2003-09-18 15:26:52.000000000 +1000
27 +++ xchat-2.0.6/src/fe-gtk/xtext.c      2003-10-07 14:57:14.000000000 +1000
28 @@ -2126,6 +2126,7 @@
29         char *stripped;
30         guchar *new_text;
31         int len;
32 +       gsize glen;
33  
34         stripped = gtk_xtext_selection_get_text (xtext, &len);
35         if (!stripped)
36 @@ -2158,9 +2159,9 @@
37                 }
38                 break;
39         default:
40 -               new_text = g_locale_from_utf8 (stripped, len, NULL, &len, NULL);
41 +               new_text = g_locale_from_utf8 (stripped, len, NULL, &glen, NULL);
42                 gtk_selection_data_set (selection_data_ptr, GDK_SELECTION_TYPE_STRING,
43 -                                                                               8, new_text, len);
44 +                                                                               8, new_text, glen);
45                 g_free (new_text);
46         }
47  
This page took 0.069779 seconds and 3 git commands to generate.