aboutsummaryrefslogtreecommitdiff
path: root/miscutils/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/chat.c')
-rw-r--r--miscutils/chat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/chat.c b/miscutils/chat.c
index 64d4ba4fd..5bbbb688f 100644
--- a/miscutils/chat.c
+++ b/miscutils/chat.c
@@ -363,7 +363,7 @@ int chat_main(int argc ATTRIBUTE_UNUSED, char **argv)
if ('@' == *buf) {
// skip the @ and any following white-space
trim(++buf);
- buf = loaded = xmalloc_open_read_close(buf, NULL);
+ buf = loaded = xmalloc_xopen_read_close(buf, NULL);
}
// expand escape sequences in command