Re: g_strchug/g_strchomp/g_strstrip crash

> 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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]