aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/lcDynamic.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-09 23:02:12 -0700
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:28 +0200
commita1b0fdb2c9852c48ede8e3bc2a7049d707188fd1 (patch)
treeff89ab061f7b0720114b25d119620c6d3cfd1817 /nx-X11/lib/X11/lcDynamic.c
parentbde3d8b141ff42c1f6828e5ed1467b691e54b253 (diff)
downloadnx-libs-a1b0fdb2c9852c48ede8e3bc2a7049d707188fd1.tar.gz
nx-libs-a1b0fdb2c9852c48ede8e3bc2a7049d707188fd1.tar.bz2
nx-libs-a1b0fdb2c9852c48ede8e3bc2a7049d707188fd1.zip
xlibi18n: convert sprintf calls to snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/lcDynamic.c')
-rw-r--r--nx-X11/lib/X11/lcDynamic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/lcDynamic.c b/nx-X11/lib/X11/lcDynamic.c
index f6df94cbb..3821bfff1 100644
--- a/nx-X11/lib/X11/lcDynamic.c
+++ b/nx-X11/lib/X11/lcDynamic.c
@@ -65,8 +65,8 @@ _XlcDynamicLoader(
XLCd lcd;
void *nlshandler;
- sprintf(libpath,"%s/%s/%s",
- XLOCALEDIR,name,LCLIBNAME);
+ snprintf(libpath, sizeof(libpath), "%s/%s/%s",
+ XLOCALEDIR, name, LCLIBNAME);
nlshandler = dlopen(libpath,LAZY);
_XlcGenericMethods = (XLCdMethods)dlsym(nlshandler,"genericMethods");
lcd = _XlcCreateLC(name,_XlcGenericMethods);