opnsense-ports/textproc/p5-Text-Unaccent/files/patch-unac.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

15 lines
490 B
C

--- unac.c.orig 2004-10-17 11:00:36.000000000 -0800
+++ unac.c 2012-03-15 16:55:01.042386000 -0800
@@ -13881,10 +13881,10 @@
*out_lengthp = 0;
} else {
char* utf16 = 0;
- int utf16_length = 0;
char* utf16_unaccented = 0;
- int utf16_unaccented_length = 0;
+ size_t utf16_length, utf16_unaccented_length;
+ utf16_length = utf16_unaccented_length = 0;
if(convert(charset, utf16be(), in, in_length, &utf16, &utf16_length) < 0) {
return -1;
}