Add files from parent branch HEAD:
[pkgsrc.git] / sysutils / brasero / patches / patch-ak
1 $NetBSD$
2
3 --- plugins/checksum/burn-checksum-files.c.orig 2009-12-14 15:12:39.000000000 +0000
4 +++ plugins/checksum/burn-checksum-files.c
5 @@ -324,10 +324,10 @@ brasero_checksum_file_process_former_lin
6  
7         /* first skip the checksum string */
8         i = 0;
9 -       while (!isspace (line [i])) i ++;
10 +       while (!isspace ((int)(unsigned char)line [i])) i ++;
11  
12         /* skip white spaces */
13 -       while (isspace (line [i])) i ++;
14 +       while (isspace ((int)(unsigned char)line [i])) i ++;
15  
16         /* get the path string */
17         path = g_strdup (line + i);
18 @@ -690,7 +690,7 @@ brasero_checksum_files_sum_on_disc_file 
19                                          gchar **checksum_string,
20                                          GError **error)
21  {
22 -       guchar buffer [64 * 2048];
23 +       guchar buffer [16 * 2048];
24         BraseroChecksumFilesPrivate *priv;
25         BraseroVolFileHandle *handle;
26         GChecksum *checksum;
27 @@ -706,7 +706,7 @@ brasero_checksum_files_sum_on_disc_file 
28  
29         read_bytes = brasero_volume_file_read_direct (handle,
30                                                       buffer,
31 -                                                     64);
32 +                                                     16);
33         g_checksum_update (checksum, buffer, read_bytes);
34  
35         while (read_bytes == sizeof (buffer)) {
36 @@ -717,7 +717,7 @@ brasero_checksum_files_sum_on_disc_file 
37  
38                 read_bytes = brasero_volume_file_read_direct (handle,
39                                                               buffer,
40 -                                                             64);
41 +                                                             16);
42                 g_checksum_update (checksum, buffer, read_bytes);
43         }
44  
45 @@ -944,7 +944,7 @@ brasero_checksum_files_check_files (Bras
46                                 goto end;
47                         }
48  
49 -                       if (!isspace (c [0])) {
50 +                       if (!isspace ((int)(unsigned char)c [0])) {
51                                 file_path [0] = '/';
52                                 file_path [1] = c [0];
53                                 break;