- ss->strings = sat_extend(ss->strings, id, 1, sizeof(Offset), STRING_BLOCK);
- // 'pointer' into stringspace is Offset of next free pos: sstrings
- ss->strings[id] = ss->sstrings;
-
- space_needed = len + 1;
- // make room in string buffer
- ss->stringspace = sat_extend(ss->stringspace, ss->sstrings, space_needed, 1, STRINGSPACE_BLOCK);
- // copy new string into buffer
- memcpy(ss->stringspace + ss->sstrings, str, space_needed - 1);
- // add the sentinel, we can't rely on it being in the source string (in
- // case the LEN is not really strlen(str))
- ss->stringspace[ss->sstrings + space_needed - 1] = 0;
- // next free pos is behind new string
- ss->sstrings += space_needed;
+ ss->strings = solv_extend(ss->strings, id, 1, sizeof(Offset), STRING_BLOCK);
+ ss->strings[id] = ss->sstrings; /* we will append to the end */