From ded59ebafbfcbacbf6f062aba81f9d2f871faf09 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Fri, 23 Jan 2009 16:36:17 +0000 Subject: [PATCH] Fixed a segfault. --- qaapi/qa/tests/node/support/vsys_conctest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qaapi/qa/tests/node/support/vsys_conctest.c b/qaapi/qa/tests/node/support/vsys_conctest.c index 99c22fd..a75178a 100644 --- a/qaapi/qa/tests/node/support/vsys_conctest.c +++ b/qaapi/qa/tests/node/support/vsys_conctest.c @@ -28,8 +28,8 @@ int main(int argc,char *argv[]) int count = 1; struct timeval tv={.tv_sec=5,.tv_usec=0}; - sprintf("%s/vsys/test.out",argv[1]); - sprintf("%s/vsys/test.in",argv[1]); + sprintf(topcmd,"%s/vsys/test.out",argv[1]); + sprintf(top_in_file,"%s/vsys/test.in",argv[1]); while (count < 200000) { fd_set readSet; int res; @@ -44,7 +44,7 @@ int main(int argc,char *argv[]) while ((fd_in = open(top_in_file, O_WRONLY| O_NONBLOCK)) < 0) { - fprintf(stderr, "Waiting for %s (%s)\n", top_in_file,strerror(errno)); + //fprintf(stderr, "Waiting for %s (%s)\n", top_in_file,strerror(errno)); usleep (50); } -- 2.47.0