mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-08 03:41:33 +02:00
oa: replace strcpy() with strcpy_s()
This commit is contained in:
committed by
R. Timothy Edwards
parent
e5d6d3f429
commit
dfa28d1cd3
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user