$NetBSD: patch-ak,v 1.1 2009/12/20 11:24:14 drochner Exp $

--- plugins/checksum/burn-checksum-files.c.orig	2009-12-14 15:12:39.000000000 +0000
+++ plugins/checksum/burn-checksum-files.c
@@ -324,10 +324,10 @@ brasero_checksum_file_process_former_lin
 
 	/* first skip the checksum string */
 	i = 0;
-	while (!isspace (line [i])) i ++;
+	while (!isspace ((int)(unsigned char)line [i])) i ++;
 
 	/* skip white spaces */
-	while (isspace (line [i])) i ++;
+	while (isspace ((int)(unsigned char)line [i])) i ++;
 
 	/* get the path string */
 	path = g_strdup (line + i);
@@ -690,7 +690,7 @@ brasero_checksum_files_sum_on_disc_file 
 					 gchar **checksum_string,
 					 GError **error)
 {
-	guchar buffer [64 * 2048];
+	guchar buffer [16 * 2048];
 	BraseroChecksumFilesPrivate *priv;
 	BraseroVolFileHandle *handle;
 	GChecksum *checksum;
@@ -706,7 +706,7 @@ brasero_checksum_files_sum_on_disc_file 
 
 	read_bytes = brasero_volume_file_read_direct (handle,
 						      buffer,
-						      64);
+						      16);
 	g_checksum_update (checksum, buffer, read_bytes);
 
 	while (read_bytes == sizeof (buffer)) {
@@ -717,7 +717,7 @@ brasero_checksum_files_sum_on_disc_file 
 
 		read_bytes = brasero_volume_file_read_direct (handle,
 							      buffer,
-							      64);
+							      16);
 		g_checksum_update (checksum, buffer, read_bytes);
 	}
 
@@ -944,7 +944,7 @@ brasero_checksum_files_check_files (Bras
 				goto end;
 			}
 
-			if (!isspace (c [0])) {
+			if (!isspace ((int)(unsigned char)c [0])) {
 				file_path [0] = '/';
 				file_path [1] = c [0];
 				break;
