Last of the spelling fixed
[oweals/cde.git] / cde / programs / dticon / fileIO.c
index ca03aa0cc92b00a3c064c629600f591d61d13af9..dffc08f5484388d2b9614b56328340ec10d0cf66 100644 (file)
@@ -16,7 +16,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  * Floor, Boston, MA 02110-1301 USA
  */
@@ -452,7 +452,7 @@ Write_File(
   int i, j;
   int mask_needed;
   Boolean SUN;
-  char *base_name, *suffix, fname[256], *tmp, *tmp2, *vend;
+  char *base_name, *suffix, fname[MAXPATHLEN], *tmp, *tmp2, *vend;
   Pixmap scratch_pix;
   XImage *scratch_shape, *scratch_mask;
   struct stat statbuf;        /* Information on a file. */
@@ -478,7 +478,8 @@ Write_File(
     netfile = tt_host_file_netfile(fnameIn, tmp+1);
     localfile = tt_netfile_file(netfile);
 
-    strncpy(fname, localfile, MAXPATHLEN);
+    strncpy(fname, localfile, MAXPATHLEN - 1);
+    fname[MAXPATHLEN - 1] = 0;
     tmp[0] = ':';
 
     tt_free(netfile);
@@ -787,7 +788,7 @@ Display_XPMFile(
   icon_height = height;
   fileFormat = FORMAT_XPM;
   XmToggleButtonGadgetSetState(formatMenu_xpm_tb, True, True);
-/* This line is not realy needed since an Exposed event will be generated */
+/* This line is not really needed since an Exposed event will be generated */
   Repaint_Exposed_Tablet();
   XDestroyImage(scratch_img);
   XFreePixmap(dpy, pix_ret);
@@ -868,7 +869,7 @@ Display_XBMFile(
   icon_height = height;
   fileFormat = FORMAT_XBM;
   XmToggleButtonGadgetSetState(formatMenu_xbm_tb, True, True);
-/* This line is not realy needed since an Exposed event will be generated */
+/* This line is not really needed since an Exposed event will be generated */
   Repaint_Exposed_Tablet();
   if (mask_ret) {
     XDestroyImage(test_img);