The original buffer is const as well and we're not allowed to modify it. Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>