aboutsummaryrefslogtreecommitdiff
path: root/jim-pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim-pack.c')
-rw-r--r--jim-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jim-pack.c b/jim-pack.c
index 88bf2c1..a809cc5 100644
--- a/jim-pack.c
+++ b/jim-pack.c
@@ -355,7 +355,7 @@ static int Jim_PackCmd(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
if (width > Jim_Length(argv[2])) {
width = Jim_Length(argv[2]);
}
- memcpy(stringObjPtr->bytes + pos, Jim_GetString(argv[2], NULL), width);
+ memcpy(stringObjPtr->bytes + pos, Jim_String(argv[2]), width);
/* No padding is needed since the string is already extended */
}