X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=linux_module%2Fiface-code-inject.c;h=34c3e6ae292f190e55f9a1885dc648d5692876cb;hp=1262d772d1db80139dcdb43305efc0a708d2ec95;hb=d22c11cec4e8c3390bfe6bf16ed07f5d073f0d4a;hpb=f240f8a3c11478abe180bd906c746c68eb8c3a3c diff --git a/linux_module/iface-code-inject.c b/linux_module/iface-code-inject.c index 1262d77..34c3e6a 100644 --- a/linux_module/iface-code-inject.c +++ b/linux_module/iface-code-inject.c @@ -74,7 +74,8 @@ static int vm_tophalf_inject (struct v3_guest * guest, unsigned int cmd, unsigne /* we have a binary name */ if (top_arg.is_exec_hooked) { - strcpy(top->bin_file, top_arg.bin_file); + strncpy(top->bin_file, top_arg.bin_file,256); + top->bin_file[255] = 0; top->is_exec_hooked = 1; DEBUG("top->bin_file is %s\n", top->bin_file); }