diff options
author | Jeffrey Stedfast <jestedfa@microsoft.com> | 2019-06-07 09:00:28 -0400 |
---|---|---|
committer | Jeffrey Stedfast <jestedfa@microsoft.com> | 2019-06-07 09:00:28 -0400 |
commit | a51efd4849cf815c4fbbec1511e9710f83a3801b (patch) | |
tree | 52cf8bbb13b452ee9fdbbaba8ee08a7ba9deb2ca | |
parent | 76803415b82e62dbccdc26abbd06a1517d11b4f2 (diff) | |
download | gmime-a51efd4849cf815c4fbbec1511e9710f83a3801b.tar.gz |
Fixed unit tests to build on msvc
-rw-r--r-- | tests/test-encodings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-encodings.c b/tests/test-encodings.c index 8697edb4..22f5784d 100644 --- a/tests/test-encodings.c +++ b/tests/test-encodings.c @@ -361,10 +361,10 @@ test_encoder (GMimeContentEncoding encoding, GByteArray *photo, GByteArray *expe { const char *name = g_mime_content_encoding_to_string (encoding); GMimeStream *istream, *ostream, *filtered; + char *buf = g_alloca (size); ssize_t nread, nwritten, n; GMimeFilter *filter; GByteArray *actual; - char buf[size]; char *path; testsuite_check ("%s encoding; buffer-size=%zu", name, size); @@ -438,10 +438,10 @@ test_decoder (GMimeContentEncoding encoding, GByteArray *encoded, GByteArray *ex { const char *name = g_mime_content_encoding_to_string (encoding); GMimeStream *istream, *ostream, *filtered; + char *buf = g_alloca (size); ssize_t nread, nwritten, n; GMimeFilter *filter; GByteArray *actual; - char buf[size]; char *path; testsuite_check ("%s decoding; buffer-size=%zu", name, size); |