OSDN Git Service
(root)
/
csp-qt
/
common_source_project-fm7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de3c25f
)
[UI][MENU][HARDDISK] OOPS: I missed update directory.
author
K.Ohta
<whatisthis.sowhat@gmail.com>
Sun, 25 Nov 2018 19:22:41 +0000
(
04:22
+0900)
committer
K.Ohta
<whatisthis.sowhat@gmail.com>
Sun, 25 Nov 2018 19:22:41 +0000
(
04:22
+0900)
source/src/qt/common/util_hdd2.cpp
patch
|
blob
|
history
diff --git
a/source/src/qt/common/util_hdd2.cpp
b/source/src/qt/common/util_hdd2.cpp
index
69b3a67
..
c82122a
100644
(file)
--- a/
source/src/qt/common/util_hdd2.cpp
+++ b/
source/src/qt/common/util_hdd2.cpp
@@
-49,7
+49,7
@@
void Ui_MainWindow::_open_hard_disk(int drv, const QString fname)
drv = drv & 7;
strncpy(path_shadow, fname.toLocal8Bit().constData(), PATH_MAX - 1);
UPDATE_HISTORY(path_shadow, config.recent_hard_disk_path[drv], listHDDs[drv]);
- str
cpy(config.initial_floppy_disk_dir, get_parent_dir((const _TCHAR *)path_shadow)
);
+ str
ncpy(config.initial_hard_disk_dir, get_parent_dir((const _TCHAR *)path_shadow), _MAX_PATH - 1
);
// Update List
strncpy(path_shadow, fname.toLocal8Bit().constData(), PATH_MAX - 1);
if(emu) {