From 750db473abdebdbf3ddfc8556a9873762c9db8f4 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 16 Apr 2012 11:44:48 +0200 Subject: [PATCH] Enlarge probe version field Signed-off-by: Jens Axboe --- server.c | 2 +- server.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server.c b/server.c index f1c69dd3..456c88c8 100644 --- a/server.c +++ b/server.c @@ -622,7 +622,7 @@ static int handle_probe_cmd(struct fio_net_cmd *cmd) #ifdef FIO_BIG_ENDIAN probe.bigendian = 1; #endif - strcpy((char *) probe.fio_version, fio_version_string); + strncpy((char *) probe.fio_version, fio_version_string, sizeof(probe.fio_version)); probe.os = FIO_OS; probe.arch = FIO_ARCH; diff --git a/server.h b/server.h index 59a41018..b7ae7ee8 100644 --- a/server.h +++ b/server.h @@ -86,7 +86,7 @@ struct cmd_du_pdu { struct cmd_probe_pdu { uint8_t hostname[64]; uint8_t bigendian; - uint8_t fio_version[8]; + uint8_t fio_version[32]; uint8_t os; uint8_t arch; uint8_t bpp; -- 2.25.1