aboutsummaryrefslogtreecommitdiff
path: root/redist
diff options
context:
space:
mode:
authoraxlecrusher <josh@allensw.com>2017-03-03 06:33:26 -0500
committerGitHub <noreply@github.com>2017-03-03 06:33:26 -0500
commit294481ff114b210f3ccb436719e9595e7ffaa96b (patch)
tree63f9e0e8c42ef4a48908fd24dbd0a85bbb6cbad7 /redist
parent6cc609204ba7ea1bd0a903cf918a2b7eea979b91 (diff)
downloadlibsurvive-294481ff114b210f3ccb436719e9595e7ffaa96b.tar.gz
libsurvive-294481ff114b210f3ccb436719e9595e7ffaa96b.tar.bz2
Remove extra asprintf parameter
Diffstat (limited to 'redist')
-rw-r--r--redist/json_helpers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/redist/json_helpers.c b/redist/json_helpers.c
index 74028b2..fd04203 100644
--- a/redist/json_helpers.c
+++ b/redist/json_helpers.c
@@ -23,7 +23,7 @@ void json_write_float_array(FILE* f, const char* tag, float* v, uint8_t count) {
str1=str2;
str2=NULL;
}
- asprintf(&str2, "%s]", str1,v[i]);
+ asprintf(&str2, "%s]", str1);
fputs(str2,f);
free(str1);
free(str2);
@@ -45,7 +45,7 @@ void json_write_double_array(FILE* f, const char* tag, double* v, uint8_t count)
str1=str2;
str2=NULL;
}
- asprintf(&str2, "%s]", str1,v[i]);
+ asprintf(&str2, "%s]", str1);
fputs(str2,f);
free(str1);
free(str2);
@@ -61,4 +61,4 @@ void json_write_float(FILE* f, const char* tag, float v) {
void json_write_str(FILE* f, const char* tag, const char* v) {
fprintf(f, "\"%s\":\"%s\"", tag, v);
-} \ No newline at end of file
+}