Joachim Schmitz wrote:
>>char* string_list_concat(string_list *list) {
>> char* result = malloc(list->length + 1);
>>
>That can't be right: I think you have a missing multiplication by
>`sizeof *result`.
Which here is 1 anyway, sizeof(char)...
Colour me idiotic: I kept seeing `result` there as `char **`. Thanks, Jojo.
Apologies to Khookie (and everyone else) for inflicting my Stupidity Of
The Day [1] on them.
[1] Please let it be the only one.
--
Chris "glasses - check; keys - check; king - check, BOOM" Dollin
Hewlett-Packard Limited registered no:
registered office: Cain Road, Bracknell, Berks RG12 1HN 690597 England