<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Description: fix building with GCC 4.4 and x86-64 architecture
Author: Emmanuel Engelhart &lt;emmanuel@engelhart.org&gt;
Bug-Debian: https://bugs.debian.org/556379
Last-Update: 2010-09-17

Description: type error in causes segfault
Author: Phil Armstrong &lt;phil@kantaka.co.uk&gt;
Bug-Debian: https://bugs.debian.org/623340
Last-Update: 2011-04-19
===================================================================
--- unac.c.orig	Fri Sep 17 10:35:14 2010 +0200
+++ unac.c	Fri Sep 17 10:36:07 2010 +0200
@@ -13873,9 +13873,9 @@
     *out_lengthp = 0;
   } else {
     char* utf16 = 0;
-    int utf16_length = 0;
+    size_t utf16_length = 0;
     char* utf16_unaccented = 0;
-    int utf16_unaccented_length = 0;
+    size_t utf16_unaccented_length = 0;
   
     if(convert(charset, utf16be(), in, in_length, &amp;utf16, &amp;utf16_length) &lt; 0) {
       return -1;
--- unaccent.c.orig	Fri Sep 17 10:35:14 2010 +0200
+++ unaccent.c	Fri Sep 17 10:40:34 2010 +0200
@@ -90,7 +90,7 @@
     const char* charset = argv[optind++];
 
     char* unaccented = 0;
-    int unaccented_length = 0;
+    size_t unaccented_length = 0;
 
     if(optind &gt;= argc) {
 #define BUFFER_SIZE 10240
@@ -101,7 +101,7 @@
 	  perror("");
 	  exit(1);
 	}
-	printf("%.*s", unaccented_length, unaccented);
+	printf("%.*s", (int)unaccented_length, unaccented);
       }
     } else {
       const char* string = argv[optind++];
@@ -114,7 +114,7 @@
 
       if(debug_level &gt; UNAC_DEBUG_NONE)
 	fprintf(stderr, "unaccented version is ");
-      printf("%.*s\n", unaccented_length, unaccented);
+      printf("%.*s\n", (int)unaccented_length, unaccented);
 
       if(optind &lt; argc) {
 	const char* expected = argv[optind++];
</pre></body></html>