Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
36a8d198
Commit
36a8d198
authored
Aug 17, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Make buffer_get_string() respect offsets
parent
f58f11f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/buffer.c
src/buffer.c
+1
-1
No files found.
src/buffer.c
View file @
36a8d198
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment