Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Cleanup and sanity-checking of use of strncpy/strcpy (Coverity static analysis)
[palacios.git] / linux_module / iface-host-pci.c
index 48097d8..9eb3a9a 100644 (file)
@@ -184,6 +184,7 @@ static int register_pci_hw_dev(unsigned int cmd, unsigned long arg) {
 
     
     strncpy(host_dev->name, hw_dev_arg.name, 128);
+    host_dev->name[127] = 0;
     host_dev->v3_dev.host_data = host_dev;