mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-05 10:48:03 -04:00
14 lines
452 B
C
14 lines
452 B
C
$NetBSD: patch-unix_uxucs.c,v 1.2 2013/08/07 11:06:39 drochner Exp $
|
|
|
|
--- unix/uxucs.c.orig 2013-07-22 07:12:05.000000000 +0000
|
|
+++ unix/uxucs.c
|
|
@@ -72,7 +72,7 @@ int wc_to_mb(int codepage, int flags, co
|
|
memset(&state, 0, sizeof state);
|
|
|
|
while (wclen > 0) {
|
|
- int i = wcrtomb(output, wcstr[0], &state);
|
|
+ size_t i = wcrtomb(output, wcstr[0], &state);
|
|
if (i == (size_t)-1 || i > n - mblen)
|
|
break;
|
|
memcpy(mbstr+n, output, i);
|