summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2009-02-06 08:39:55 -0500
committerAustin Yuan <shengquan.yuan@intel.com>2009-02-06 08:39:55 -0500
commit939437e3fc617cdbc0e258d6f6ea51238341a307 (patch)
treea80c0f1fab111890e5c43b08ecde29331a66131c
parentd8f7c84f3dac29f513c675ec1ff8bd99fef56e59 (diff)
parent9fc2fdfcc1940c3b7de4b7f2a3a7c18d7e987ab8 (diff)
downloadlibva-939437e3fc617cdbc0e258d6f6ea51238341a307.tar.gz
Merge branch 'master' of ssh://git@moblin-mdi.jf.intel.com/umg-moorestown-libva
-rw-r--r--src/va.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/va.c b/src/va.c
index 1d7945c..3e8a799 100644
--- a/src/va.c
+++ b/src/va.c
@@ -143,7 +143,7 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
char *driver_path = (char *) malloc( strlen(driver_dir) +
strlen(driver_name) +
strlen(DRIVER_EXTENSION) + 2 );
- strncpy( driver_path, driver_dir, strlen(driver_dir) );
+ strncpy( driver_path, driver_dir, strlen(driver_dir) + 1);
strncat( driver_path, "/", strlen("/") );
strncat( driver_path, driver_name, strlen(driver_name) );
strncat( driver_path, DRIVER_EXTENSION, strlen(DRIVER_EXTENSION) );