1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

Fix: Make buffer_get_string() respect offsets

This commit is contained in:
Philipp Schafft 2018-08-17 11:13:36 +00:00
parent f58f11f2d2
commit 36a8d198fd

View File

@ -128,7 +128,7 @@ int buffer_get_string(buffer_t *buffer, const char **string)
/* Actually add a '\0'-termination. */
ret = buffer->buffer;
ret[buffer->fill] = 0;
*string = ret;
*string = ret + buffer->offset;
return 0;
}