summaryrefslogtreecommitdiff
path: root/hook.c
diff options
context:
space:
mode:
Diffstat (limited to 'hook.c')
-rw-r--r--hook.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hook.c b/hook.c
index 913ccc3..87f0da6 100644
--- a/hook.c
+++ b/hook.c
@@ -1098,7 +1098,7 @@ print:
reerror(ecode, &einfo.regex,
buffer + length, sizeof(buffer) - length - 2);
strcat(buffer, "\n");
- XeditPrintf(buffer);
+ XeditPrintf("%s", buffer);
refree(&einfo.regex);
einfo.state = SubstituteDisabled;
Feep();
@@ -1159,8 +1159,7 @@ fail:
ptr = "Unknown error";
break;
}
- XmuSnprintf(buffer, sizeof(buffer), "Error: %s.\n", ptr);
- XeditPrintf(buffer);
+ XeditPrintf("Error: %s.\n", ptr);
}
if (redisplay)
XawTextEnableRedisplay(w);