[segyio] 61/376: Make expected string is on-stack char array
Jørgen Kvalsvik
jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:07 UTC 2017
This is an automated email from the git hooks/post-receive script.
jokva-guest pushed a commit to branch debian
in repository segyio.
commit a98c782ac5b8cfced8cd7e15ef4d133000271d9c
Author: Jørgen Kvalsvik <jokva at statoil.com>
Date: Wed Oct 19 14:19:14 2016 +0200
Make expected string is on-stack char array
---
tests/test_utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_utils.c b/tests/test_utils.c
index b6db05e..ab67663 100644
--- a/tests/test_utils.c
+++ b/tests/test_utils.c
@@ -36,7 +36,7 @@ static void testEbcdicTable() {
}
static void testConversionAllocation() {
- char* expected = (char*) "Hello there!";
+ char expected[] = "Hello there!";
char str[] = "\xc8\x85\x93\x93\x96\x40\xa3\x88\x85\x99\x85\x4f";
char result[ sizeof( str ) ];
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/segyio.git
More information about the debian-science-commits
mailing list