Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix jsvGetString regression
  • Loading branch information
gfwilliams committed May 21, 2018
1 parent c36d305 commit ce19241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsvar.c
Expand Up @@ -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++;
}
Expand Down

0 comments on commit ce19241

Please sign in to comment.