diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-09 21:12:14 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-09 21:12:14 +0000 |
commit | 9a2f3d3377b82b597f00d1d8fb8ee58d141cfb95 (patch) | |
tree | aa4691cd582e1b074d43ba30e930f29b7942885d /Stars45/NetPassDlg.cpp | |
parent | b2805409566af00bc15639494f5a186fbd2f16e6 (diff) | |
download | starshatter-9a2f3d3377b82b597f00d1d8fb8ee58d141cfb95.zip starshatter-9a2f3d3377b82b597f00d1d8fb8ee58d141cfb95.tar.gz starshatter-9a2f3d3377b82b597f00d1d8fb8ee58d141cfb95.tar.bz2 |
More string safety stuff
Diffstat (limited to 'Stars45/NetPassDlg.cpp')
-rw-r--r-- | Stars45/NetPassDlg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Stars45/NetPassDlg.cpp b/Stars45/NetPassDlg.cpp index 5ea1542..551b31d 100644 --- a/Stars45/NetPassDlg.cpp +++ b/Stars45/NetPassDlg.cpp @@ -115,7 +115,7 @@ NetPassDlg::OnApply(AWEvent* event) if (info && edt_pass->GetText().length() < 250) {
char buffer[256];
- strcpy(buffer, edt_pass->GetText().data());
+ strcpy_s(buffer, edt_pass->GetText().data());
// trim from first occurrence of invalid character
char* p = strpbrk(buffer, "\n\r\t");
|