Re: [Nautilus-list] PATCH: linefeed problem for librsvg
- From: Darin Adler <darin bentspoon com>
- To: Akira TAGOH <tagoh redhat com>
- Cc: nautilus-list eazel com
- Subject: Re: [Nautilus-list] PATCH: linefeed problem for librsvg
- Date: Sat, 21 Jul 2001 09:20:43 -0700
On Thursday, July 19, 2001, at 12:55 AM, Akira TAGOH wrote:
Please commit this patch.
/* Alloc max length of wide char */
wcstr = g_new0 (wchar_t, length);
- wclength = mbstowcs (wcstr, str, length);
+ tmpstr = g_strndup (str, length);
+ wclength = mbstowcs (wcstr, tmpstr, length);
Could you please explain why making a truncated copy of str (in tmpstr) is
helpful and necessary? I'd like to understand this fix before I commit it.
-- Darin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]