more gcc7 fix
This commit is contained in:
parent
ea8fa073d9
commit
18e888157e
@ -622,3 +622,15 @@ diff -up libvma-8.0.1/src/vma/sock/sock-redirect.cpp.me libvma-8.0.1/src/vma/soc
|
||||
{
|
||||
BULLSEYE_EXCLUDE_BLOCK_START
|
||||
if (!orig_os_api.fcntl) get_orig_funcs();
|
||||
diff -up libvma-8.0.1/src/stats/stats_reader.cpp.me libvma-8.0.1/src/stats/stats_reader.cpp
|
||||
--- libvma-8.0.1/src/stats/stats_reader.cpp.me 2018-02-05 21:25:40.793097034 +0100
|
||||
+++ libvma-8.0.1/src/stats/stats_reader.cpp 2018-02-05 21:28:30.415637551 +0100
|
||||
@@ -1525,7 +1525,7 @@ int init_print_process_stats(sh_mem_inf
|
||||
sh_mem_t* sh_mem;
|
||||
int pid = sh_mem_info.pid;
|
||||
|
||||
- sprintf(sh_mem_info.filename_sh_stats, "%s/vmastat.%d", g_vma_shmem_dir, pid);
|
||||
+ snprintf(sh_mem_info.filename_sh_stats, sizeof(sh_mem_info.filename_sh_stats), "%s/vmastat.%d", g_vma_shmem_dir, pid);
|
||||
|
||||
if (user_params.write_auth)
|
||||
sh_mem_info.fd_sh_stats = open(sh_mem_info.filename_sh_stats,O_RDWR, S_IRWXU|S_IROTH);
|
||||
|
Loading…
Reference in New Issue
Block a user