From cdc22d33286de76920804bdebc459500267c2beb Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Mon, 1 Mar 2010 15:07:10 +0100 Subject: fix format security error Signed-off-by: Nikola Pajkovsky --- lib/Utils/copyfd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Utils/copyfd.cpp') diff --git a/lib/Utils/copyfd.cpp b/lib/Utils/copyfd.cpp index 61ef74b..fad716f 100644 --- a/lib/Utils/copyfd.cpp +++ b/lib/Utils/copyfd.cpp @@ -71,14 +71,14 @@ static off_t full_fd_action(int src_fd, int dst_fd, off_t size) break; } if (rd < 0) { - perror_msg(msg_read_error); + perror_msg("%s", msg_read_error); break; } /* dst_fd == -1 is a fake, else... */ if (dst_fd >= 0) { ssize_t wr = full_write(dst_fd, buffer, rd); if (wr < rd) { - perror_msg(msg_write_error); + perror_msg("%s", msg_write_error); break; } } -- cgit