X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fwcsrtombs.c;h=a253c3a8310dc1aa7dbaa5092d9f80b5ab1cde7e;hb=0aa49ea72a8764e3065ebbfc55459232ca8fb021;hp=72423b524b0e0210ce2348c6adba4685a35491f6;hpb=8bda5a9b0ee0e57039f8093ab0506ce5d2844daa;p=gnulib.git diff --git a/lib/wcsrtombs.c b/lib/wcsrtombs.c index 72423b524..a253c3a83 100644 --- a/lib/wcsrtombs.c +++ b/lib/wcsrtombs.c @@ -1,5 +1,5 @@ /* Convert wide string to string. - Copyright (C) 2008, 2010-2011 Free Software Foundation, Inc. + Copyright (C) 2008, 2010-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify @@ -37,7 +37,7 @@ rpl_wcsrtombs (char *dest, const wchar_t **srcp, size_t len, mbstate_t *ps) { const wchar_t *temp_src = *srcp; - return wcsrtombs (NULL, &temp_src, len, ps); + return wcsrtombs (NULL, &temp_src, (size_t)-1, ps); } else # endif