mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-01-03 14:56:34 -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. */
|
/* Actually add a '\0'-termination. */
|
||||||
ret = buffer->buffer;
|
ret = buffer->buffer;
|
||||||
ret[buffer->fill] = 0;
|
ret[buffer->fill] = 0;
|
||||||
*string = ret;
|
*string = ret + buffer->offset;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user