summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Utils/copyfd.cpp4
-rw-r--r--src/CLI/report.cpp2
2 files changed, 3 insertions, 3 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;
}
}
diff --git a/src/CLI/report.cpp b/src/CLI/report.cpp
index 7f79fbea..41ac6c2c 100644
--- a/src/CLI/report.cpp
+++ b/src/CLI/report.cpp
@@ -426,7 +426,7 @@ static int run_report_editor(map_crash_data_t &cr)
*/
static void read_from_stdin(const char *question, char *result, int result_size)
{
- printf(question);
+ printf("%s", question);
fflush(NULL);
fgets(result, result_size, stdin);
// Remove the newline from the login.