Update of /cvsroot/xine/xine-lib/src/libw32dll/wine
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv13083/src/libw32dll/wine
Modified Files:
module.c
Log Message:
Fix wrong length specification for strncat() calls.
Consolidated multiple strncat() calls to snprintf().
Index: module.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/libw32dll/wine/module.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- module.c 11 Jun 2006 15:09:47 -0000 1.18
+++ module.c 8 Dec 2006 16:26:10 -0000 1.19
@@ -389,9 +389,7 @@
strncpy(path, libname, sizeof(path) - 1);
} else {
/* check default user path */
- strncpy(path, win32_def_path, sizeof(path) - 2);
- strcat(path, "/");
- strncat(path, libname, sizeof(path) - strlen(libname));
+ snprintf(path, sizeof(path), "%s/%s", win32_def_path, libname);
}
wm = MODULE_LoadLibraryExA( path, hfile, flags );
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog