We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d68e99e commit 91f3a42Copy full SHA for 91f3a42
test/unit/http_utils_test.cpp
@@ -36,11 +36,11 @@ LT_BEGIN_SUITE(http_utils_suite)
36
LT_END_SUITE(http_utils_suite)
37
38
LT_BEGIN_AUTO_TEST(http_utils_suite, unescape)
39
- char* string_with_plus = (char*) malloc(5 * sizeof(char));
+ char* string_with_plus = (char*) malloc(6 * sizeof(char));
40
sprintf(string_with_plus, "%s", "A%20B");
41
int expected_size = http::http_unescape(string_with_plus);
42
43
- char* expected = (char*) malloc(3 * sizeof(char));
+ char* expected = (char*) malloc(4 * sizeof(char));
44
sprintf(expected, "%s", "A B");
45
46
LT_CHECK_EQ(string(string_with_plus), string(expected));
0 commit comments