From 3fafdfd3f40afebd4903890ae9ea4576eded772c Mon Sep 17 00:00:00 2001 From: a dinosaur Date: Tue, 1 Oct 2019 23:25:13 +1000 Subject: [PATCH] use c string for out names --- neotools/neoadpcmextract.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neotools/neoadpcmextract.cpp b/neotools/neoadpcmextract.cpp index 76abfaf..2d1ec36 100644 --- a/neotools/neoadpcmextract.cpp +++ b/neotools/neoadpcmextract.cpp @@ -22,7 +22,7 @@ #include #include -void DecodeSample(FILE* fin, const std::string& name, std::vector & buf) +void DecodeSample(FILE* fin, const char* name, std::vector & buf) { // Set up output vector. uint32_t sampLen = 0; @@ -41,7 +41,7 @@ void DecodeSample(FILE* fin, const std::string& name, std::vector & buf // Read adpcm data. fread(buf.data(), sizeof(uint8_t), sampLen, fin); - FILE* fout = fopen(name.c_str(), "wb"); + FILE* fout = fopen(name, "wb"); if (!fout) return;