summaryrefslogtreecommitdiff
path: root/pcl
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-08-30 10:26:48 +0100
committerChris Liddell <chris.liddell@artifex.com>2022-08-30 13:48:12 +0100
commit9d2466e56b37f738f26f04f093bb23af8524e74c (patch)
tree8cdaca1e78bdad0ba3b67c72bb171fe7becd9201 /pcl
parent3fcd11272414a8a9cfac757d2a20f1f48d15af85 (diff)
downloadghostpdl-9d2466e56b37f738f26f04f093bb23af8524e74c.tar.gz
Coverity 380513 (redux): Fix correct macro invocation
Previously, I changed the wrong macro invocation, this puts that back, and changes the correct instance to new macro.
Diffstat (limited to 'pcl')
-rw-r--r--pcl/pcl/pcsfont.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pcl/pcl/pcsfont.c b/pcl/pcl/pcsfont.c
index de3b5c8ac..b068aa5b5 100644
--- a/pcl/pcl/pcsfont.c
+++ b/pcl/pcl/pcsfont.c
@@ -1009,8 +1009,8 @@ pcl_alphanumeric_id_data(pcl_args_t * pargs, pcl_state_t * pcs)
/* simple case - the macro is in the dictionary */
if (pl_dict_find_no_stack(&pcs->macros, alpha_data->string_id, string_id_size, &value)) {
return pl_dict_put_synonym(&pcs->macros, alpha_data->string_id,
- string_id_size, CURRENT_MACRO_STRING_ID,
- CURRENT_MACRO_STRING_ID_SIZE);
+ string_id_size, CURRENT_MACRO_ID,
+ CURRENT_MACRO_ID_SIZE);
} else {
/* search the PJL file system for a macro resource */
return pcl_find_resource(pcs, alpha_data->string_id,
@@ -1027,8 +1027,8 @@ pcl_alphanumeric_id_data(pcl_args_t * pargs, pcl_state_t * pcs)
case 21:
/* deletes the macro association named the the current macro id */
if (pcs->macro_id_type == string_id)
- pl_dict_undef(&pcs->macros, CURRENT_MACRO_ID,
- CURRENT_MACRO_ID_SIZE);
+ pl_dict_undef(&pcs->macros, CURRENT_MACRO_STRING_ID,
+ CURRENT_MACRO_STRING_ID_SIZE);
break;
case 100:
/* media select */