summaryrefslogtreecommitdiff
path: root/src/palrt/urlpars.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/palrt/urlpars.cpp')
-rw-r--r--src/palrt/urlpars.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/palrt/urlpars.cpp b/src/palrt/urlpars.cpp
index 77b0a6e2ba..66289b6f9d 100644
--- a/src/palrt/urlpars.cpp
+++ b/src/palrt/urlpars.cpp
@@ -11,6 +11,7 @@
// ===========================================================================
#include "common.h"
+#include "strsafe.h"
#define SLASH W('/')
#define WHACK W('\\')
@@ -293,14 +294,13 @@ ParseURLW(
// (+ 1) for null terminator.
- StrCpyNW(rgchDebugProtocol, ppu->pszProtocol,
+ StringCchCopyNW(rgchDebugProtocol, ARRAYSIZE(rgchDebugProtocol), ppu->pszProtocol,
min(ppu->cchProtocol + 1, SIZECHARS(rgchDebugProtocol)));
// (+ 1) for null terminator.
- StrCpyNW(rgchDebugSuffix, ppu->pszSuffix,
+ StringCchCopyNW(rgchDebugSuffix, ARRAYSIZE(rgchDebugSuffix), ppu->pszSuffix,
min(ppu->cchSuffix + 1, SIZECHARS(rgchDebugSuffix)));
-
}
#endif