Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix jsvGetString regression
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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++; |
|
|
} |
|
|