Re: g_strchug/g_strchomp/g_strstrip crash
- From: Joe Shaw <joe helixcode com>
- To: Havoc Pennington <hp redhat com>
- Cc: gtk-devel-list gnome org
- Subject: Re: g_strchug/g_strchomp/g_strstrip crash
- Date: Fri, 8 Sep 2000 18:57:01 -0400 (EDT)
> Shouldn't they just stick a '\0' in the first byte of the passed-in
> string? Why strdup() a new string?
Good point. I suppose those functions are different from most of the
string utility functions in that they don't return a newly allocated
string. In this case, I guess that'd be fine.
Joe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]