Skip to content

Commit 7d37d24

Browse files
committed
🔧 fix for snprintf
see test case at influxdb-c
1 parent 9eba974 commit 7d37d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ namespace influxdb_cpp {
215215
"%s /%s?db=%s&u=%s&p=%s%s HTTP/1.1\r\nHost: %s\r\nContent-Length: %d\r\n\r\n",
216216
method, uri, si.db_.c_str(), si.usr_.c_str(), si.pwd_.c_str(),
217217
querystring.c_str(), si.host_.c_str(), (int)body.length());
218-
if((int)iv[0].iov_len > len)
218+
if((int)iv[0].iov_len >= len)
219219
header.resize(len *= 2);
220220
else
221221
break;

0 commit comments

Comments
 (0)