oa: replace strcpy() with strcpy_s()

This commit is contained in:
Darryl L. Miles
2026-07-09 10:41:12 -04:00
committed by R. Timothy Edwards
parent e5d6d3f429
commit dfa28d1cd3
3 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ TCLFUNC(get_user_unit) {
TCL_RTN_ERROR("Usage: %s tech",getArgString(0));
try {
getUserUnit(getArgString(1), uUnit, NULL, techUserUnit);
getUserUnit(getArgString(1), uUnit, sizeof(uUnit), NULL, techUserUnit);
Tcl_Obj *strResult = Tcl_NewStringObj(uUnit, strlen(uUnit));
//Tcl_SetResult(REX_interp, uUnit, TCL_STATIC);
Tcl_SetObjResult(REX_interp, strResult);