mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Fix: Make buffer_get_string() respect offsets
This commit is contained in:
parent
f58f11f2d2
commit
36a8d198fd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user