From a04bf8a8e0c2cdb4a5e8eca8743dbc45266401f1 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Wed, 14 Nov 2018 20:21:15 -0300 Subject: [PATCH] fix fprintf in tests --- test/test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.c b/test/test.c index d8acd3b..5cb08aa 100644 --- a/test/test.c +++ b/test/test.c @@ -59,17 +59,17 @@ int main(int argc, char **argv) { test_case = malloc(sizeof(int) * n); if (test_case == NULL) { - fprintf("Error: Out of heap space!\n"); + fprintf(stderr, "Error: Out of heap space!\n"); exit(1); } qarray = malloc(sizeof(int) * n); if (qarray == NULL) { - fprintf("Error: Out of heap space!\n"); + fprintf(stderr, "Error: Out of heap space!\n"); exit(1); } test_array = malloc(sizeof(int) * n); if (test_array == NULL) { - fprintf("Error: Out of heap space!\n"); + fprintf(stderr, "Error: Out of heap space!\n"); exit(1); }