summaryrefslogtreecommitdiff
path: root/tests/src/Interop/SimpleStruct/SimpleStructNative.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/Interop/SimpleStruct/SimpleStructNative.cpp')
-rw-r--r--tests/src/Interop/SimpleStruct/SimpleStructNative.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/Interop/SimpleStruct/SimpleStructNative.cpp b/tests/src/Interop/SimpleStruct/SimpleStructNative.cpp
index c64b33c3e7..fb855a42e8 100644
--- a/tests/src/Interop/SimpleStruct/SimpleStructNative.cpp
+++ b/tests/src/Interop/SimpleStruct/SimpleStructNative.cpp
@@ -30,7 +30,7 @@ DLL_EXPORT BOOL _cdecl CdeclSimpleStructByRef(Sstr *p)
{
p->a = 100;
p->b=1;
- strncpy(p->str,"after",6);
+ strcpy_s(p->str, 7, "after");
return TRUE;
}