Fix rest of PR 13054.
[pspp-builds.git] / src / file-handle.q
index 688fbb89b509b1af790611cb52853525d5ba9fcd..3f09d1946fecd87ddb6b8daefebbc044d7a49d2b 100644 (file)
@@ -116,7 +116,7 @@ cmd_file_handle (void)
 
   if (!lex_force_id ())
     return CMD_FAILURE;
-  st_trim_copy (handle_name, tokid, sizeof handle_name);
+  str_copy_trunc (handle_name, sizeof handle_name, tokid);
 
   handle = get_handle_with_name (handle_name);
   if (handle != NULL)