summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2010-03-01 15:07:10 +0100
committerNikola Pajkovsky <npajkovs@redhat.com>2010-03-02 11:13:05 +0100
commitcdc22d33286de76920804bdebc459500267c2beb (patch)
tree3ca8e5bb162b97d8bde25bc1cce770f315e16a0f /lib
parent7533baf4751cc405fdcce2122d7b0e3c1193f2b6 (diff)
downloadabrt-cdc22d33286de76920804bdebc459500267c2beb.tar.gz
abrt-cdc22d33286de76920804bdebc459500267c2beb.tar.xz
abrt-cdc22d33286de76920804bdebc459500267c2beb.zip
fix format security error
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Utils/copyfd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Utils/copyfd.cpp b/lib/Utils/copyfd.cpp
index 61ef74b1..fad716f2 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;
}
}