Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

バックアップで詳細$0~$9指定を使いMAX_PATH近いパスを保存しようとすると落ちる不具合を修正 #1596

Merged
merged 3 commits into from
Mar 20, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
レビュー指摘対応
  • Loading branch information
usagisita committed Mar 20, 2021
commit 9c3f3cec452a62e6632e65ab03d9499b90647dc8
6 changes: 2 additions & 4 deletions sakura_core/CBackupAgent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,8 @@ bool CBackupAgent::FormatBackUpPath(
if (STRUNCATE == wcsncat_s(szNewPath, newPathCount, q2, _TRUNCATE)) {
return false;
}
if( folders[*q-L'0'] != 0 ){
if (STRUNCATE == wcsncat_s(szNewPath, newPathCount, folders[*q - L'0'], _TRUNCATE)) {
return false;
}
if (folders[*q-L'0'] != 0 && STRUNCATE == wcsncat_s(szNewPath, newPathCount, folders[*q - L'0'], _TRUNCATE)) {
return false;
}
q2 = q+1;
}
Expand Down