summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--post.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/post.h b/post.h
index d9844d0..acfa3f3 100644
--- a/post.h
+++ b/post.h
@@ -6,7 +6,7 @@ inline void post(const char *path, const char *pairs[], size_t n)
for (size_t i = 0; i < n; i += 2) {
const char *pair = pairs[i];
if (pair && strcmp(pair, ""))
- length += strlen(pair) + strlen(++pair) + 3;
+ length += strlen(pair) + strlen(pairs[i + 1]) + 3;
}
char content[length + 1];
@@ -22,7 +22,7 @@ inline void post(const char *path, const char *pairs[], size_t n)
__android_log_print(ANDROID_LOG_DEBUG, "librtclient", "%s\nContent:\n%s"
, __func__, content);
#else
- fprintf(stderr, "%s\nContent:\n%s", __func__, content);
+ fprintf(stderr, "%s\nContent:\n%s", __func__, content);
#endif // ANDROID
#endif // DEBUG