aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/X/NXdixfonts.c
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2011-10-10 17:59:01 +0200
committerReinhard Tartler <siretart@tauware.de>2011-10-10 17:59:01 +0200
commite01b9177b41f7d27a934d41fa38d550fa0026b45 (patch)
treea5cbd3193d1a628272c244c4e50f8e0e685bdeb1 /nx-X11/programs/Xserver/hw/nxagent/X/NXdixfonts.c
parent39b738a67a14dde67b2a811d56ac84934fcef52d (diff)
downloadnx-libs-e01b9177b41f7d27a934d41fa38d550fa0026b45.tar.gz
nx-libs-e01b9177b41f7d27a934d41fa38d550fa0026b45.tar.bz2
nx-libs-e01b9177b41f7d27a934d41fa38d550fa0026b45.zip
Imported nxagent-3.5.0-5.tar.gznxagent/3.5.0-5
Summary: Imported nxagent-3.5.0-5.tar.gz Keywords: Imported nxagent-3.5.0-5.tar.gz into Git repository
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/X/NXdixfonts.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/X/NXdixfonts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/X/NXdixfonts.c b/nx-X11/programs/Xserver/hw/nxagent/X/NXdixfonts.c
index 04fc047fc..3234c9929 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/X/NXdixfonts.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/X/NXdixfonts.c
@@ -148,7 +148,8 @@ static const char *_NXGetFontPath(const char *path)
_NXGetFontPathError:
- strcpy(_NXFontPath, path);
+ strncpy(_NXFontPath, path, 1023);
+ _NXFontPath[1023] = '\0';
#ifdef NX_TRANS_TEST
fprintf(stderr, "_NXGetFontPath: Using default font path [%s].\n", _NXFontPath);