From: Tim Kientzle Date: Sun, 27 Dec 2009 23:55:24 +0000 (-0500) Subject: Be more explicit about the expected line termination for the version string. X-Git-Tag: v2.8.0~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65180a2a190819725d13580014a702e66f723a76;p=thirdparty%2Flibarchive.git Be more explicit about the expected line termination for the version string. SVN-Revision: 1781 --- diff --git a/cpio/test/test_option_version.c b/cpio/test/test_option_version.c index 8a25248c4..722b600c5 100644 --- a/cpio/test/test_option_version.c +++ b/cpio/test/test_option_version.c @@ -78,9 +78,9 @@ verify(const char *p, size_t s) assert(s >= 1); failure("Version: %s", p); #if defined(_WIN32) && !defined(__CYGWIN__) - assertEqualMem(q, "\r\n", 2); + assertEqualMem(q, "\x0d\x0a", 2); #else - assertEqualMem(q, "\n", 1); + assertEqualMem(q, "\x0a", 1); #endif }