summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-09-23 16:09:42 -0600
committerJens Axboe <axboe@kernel.dk>2019-09-23 16:09:42 -0600
commit3f64668f8587e11fe585874c37103ef602a3cd07 (patch)
tree3076159f4f2531073d93b0ccb4e2d11253c1f7f1
parent92f75708b530989fdb13b50be6604f44b80d038d (diff)
parent5b215853ed4b438b5b2d4ac3e56d5f0d19e145d9 (diff)
downloadfio-3f64668f8587e11fe585874c37103ef602a3cd07.tar.gz
fio-3f64668f8587e11fe585874c37103ef602a3cd07.tar.bz2
Merge branch 'master' of https://github.com/anatol/fio
* 'master' of https://github.com/anatol/fio: Fix compilation error with gfio
-rw-r--r--gclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gclient.c b/gclient.c
index 64324177..d8dc62d2 100644
--- a/gclient.c
+++ b/gclient.c
@@ -330,7 +330,7 @@ static void gfio_update_thread_status_all(struct gui *ui, char *status_message,
static char message[100];
const char *m = message;
- strncpy(message, sizeof(message), "%s", status_message);
+ snprintf(message, sizeof(message), "%s", status_message);
gtk_progress_bar_set_text(GTK_PROGRESS_BAR(ui->thread_status_pb), m);
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(ui->thread_status_pb), perc / 100.0);
gtk_widget_queue_draw(ui->window);