mirror of https://github.com/nodejs/node.git
Fix base64 write for buffers
parent
1f947f7b41
commit
ececd92f62
|
@ -618,7 +618,7 @@ Handle<Value> Buffer::Base64Write(const Arguments &args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
char a, b, c, d;
|
char a, b, c, d;
|
||||||
char* dst = buffer->data();
|
char* dst = buffer->data() + offset;
|
||||||
const char *src = *s;
|
const char *src = *s;
|
||||||
const char *const srcEnd = src + s.length();
|
const char *const srcEnd = src + s.length();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue