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-dev.c
index c9c586e..c8f8f60 100644 (file)
@@ -785,6 +785,7 @@ static v3_host_dev_t palacios_host_dev_open_deferred(char *url,
     memset(dev,0,sizeof(struct palacios_host_device_user));
     
     strncpy(dev->url,url,MAX_URL);
+    dev->url[MAX_URL-1] = 0;
     
     dev->guestdev = gdev;