Skip to content

Commit 550d603

Browse files
committed
[FIX] : fix for unix
1 parent 961c0e0 commit 550d603

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ImGuiFileDialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4724,7 +4724,7 @@ IMGUIFILEDIALOG_API IGFD_Selection IGFD_GetSelection(ImGuiFileDialog* vContext)
47244724
size_t siz = s.first.size() + 1U;
47254725
pair->fileName = new char[siz];
47264726
#ifndef MSVC
4727-
strncpy(pair->fileNameExt, s.first.c_str(), siz);
4727+
strncpy(pair->fileName, s.first.c_str(), siz);
47284728
#else
47294729
strncpy_s(pair->fileName, siz, s.first.c_str(), siz);
47304730
#endif

0 commit comments

Comments
 (0)