projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
client: Avoid memory leak in fio_client_handle_iolog()
[fio.git]
/
server.c
diff --git
a/server.c
b/server.c
index 0469cea7221f063c26fcc0526cc6a2f8928ae873..e6ea4cdbfdcabc911a97f0e96d1e99e92b8c520b 100644
(file)
--- a/
server.c
+++ b/
server.c
@@
-856,7
+856,7
@@
static int handle_probe_cmd(struct fio_net_cmd *cmd)
#ifdef CONFIG_BIG_ENDIAN
probe.bigendian = 1;
#endif
#ifdef CONFIG_BIG_ENDIAN
probe.bigendian = 1;
#endif
- strncpy((char *) probe.fio_version, fio_version_string, sizeof(probe.fio_version));
+ strncpy((char *) probe.fio_version, fio_version_string, sizeof(probe.fio_version)
- 1
);
probe.os = FIO_OS;
probe.arch = FIO_ARCH;
probe.os = FIO_OS;
probe.arch = FIO_ARCH;