diff --git a/source/App/DecoderApp/DecApp.cpp b/source/App/DecoderApp/DecApp.cpp
index 7c13731dfb649bfe2a75a885963504ccdac65f1a..0bcd9bfb7558ba347b64ac2b428384581f897f6b 100644
--- a/source/App/DecoderApp/DecApp.cpp
+++ b/source/App/DecoderApp/DecApp.cpp
@@ -1959,9 +1959,9 @@ void DecApp::xOutputPackedRegionsInfo(Picture* pcPic)
   }
 }
 
-void DecApp::xOutputPackedRegionsInfoVector(FILE* fp, char* paramName, const std::vector<uint32_t>& l)
+void DecApp::xOutputPackedRegionsInfoVector(FILE* fp, std::string paramName, const std::vector<uint32_t>& l)
 {
-  fprintf(fp, paramName);
+  fprintf(fp, paramName.c_str());
   for (auto it : l)
   {
     fprintf(fp, " %d", it);
diff --git a/source/App/DecoderApp/DecApp.h b/source/App/DecoderApp/DecApp.h
index 6193799f73d04d02c5fd39ce96bd195a06774ec4..ede567f34c69914f93a5bfd9aceaf27ae405f7b5 100644
--- a/source/App/DecoderApp/DecApp.h
+++ b/source/App/DecoderApp/DecApp.h
@@ -140,7 +140,7 @@ private:
 #endif
 #if JVET_AH0161_REGION_PACKING_INFORMATION_SEI
   void xOutputPackedRegionsInfo(Picture* pcPic);
-  void xOutputPackedRegionsInfoVector(FILE* fp, char* paramName, const std::vector<uint32_t>& v);
+  void xOutputPackedRegionsInfoVector(FILE* fp, std::string paramName, const std::vector<uint32_t>& v);
 #endif
 };