openbsd-ports/textproc/libtranslate/patches/patch-src_translate-util_c
sthen 7a7d24054f import libtranslate, a library and easy-to-use CLI tool for translating text
between languages via web-based language translation sites (google translate
and other services).  feedback/ok aja@
2011-11-14 16:38:07 +00:00

16 lines
550 B
Plaintext

$OpenBSD: patch-src_translate-util_c,v 1.1.1.1 2011/11/14 16:38:07 sthen Exp $
upstream patch
--- src/translate-util.c.orig Mon Nov 14 16:06:02 2011
+++ src/translate-util.c Mon Nov 14 16:06:28 2011
@@ -136,7 +136,7 @@ translate_ascii_strcasestr_len (const char *big,
g_return_val_if_fail(big != NULL, NULL);
g_return_val_if_fail(little != NULL, NULL);
- lower_big = g_ascii_strdown(big, big_len);
+ lower_big = g_ascii_strdown(big, (int) big_len);
lower_little = g_ascii_strdown(little, -1);
s = strstr(lower_big, lower_little);