Skip to content
Permalink
Browse files

fix jsvGetString regression

  • Loading branch information
gfwilliams committed May 21, 2018
1 parent c36d305 commit ce1924193862d58cb43d3d4d9dada710a8361b89
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jsvar.c
@@ -1190,7 +1190,7 @@ size_t jsvGetString(const JsVar *v, char *str, size_t len) {
* want to pad the entire buffer with zeros */
len--;
int l = 0;
while (*s && l<len) {
while (s[l] && l<len) {
str[l] = s[l];
l++;
}

0 comments on commit ce19241

Please sign in to comment.
You can’t perform that action at this time.