From 599139ac42b1c0026ae1c3b37b51bc6de8b5e0fd Mon Sep 17 00:00:00 2001 From: hillyuan Date: Mon, 30 Apr 2018 21:13:45 +0900 Subject: [PATCH] Fix issue #138: Build Failure --- phasta/phBubble.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phasta/phBubble.cc b/phasta/phBubble.cc index 2f89c28f4..83f2b7982 100644 --- a/phasta/phBubble.cc +++ b/phasta/phBubble.cc @@ -18,11 +18,10 @@ typedef std::vector Bubbles; void readBubbles(Bubbles& bubbles, std::string bubbleFileName) { - char bubblefname[1024]; FILE *filebubble; Bubble readbubble; - sprintf(bubblefname,bubbleFileName.c_str()); + const char* bubblefname = bubbleFileName.c_str(); if (!PCU_Comm_Self()) printf("reading bubbles info from %s\n",bubblefname);