+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * 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
+ */
/* $TOG: fileDlg.c /main/8 1999/09/15 15:15:56 mgreess $ */
/**********************************<+>*************************************
***************************************************************************
int firstSelect = -1, lastSelect = -1;
Widget textField;
Arg args[5];
- register int n;
+ int n;
XmString dirString;
dirbuf[0] = (char) '\0';
strcpy(dirbuf, pPad->fileStuff.pathDir);
/* -----> make sure dir ends in '/' */
if (dirbuf[0] != (char )'\0') {
- if (dirbuf[strlen(dirbuf) - 1] != (char)'/')
- strcat(dirbuf, "/");
+ if (strlen(dirbuf) && dirbuf[strlen(dirbuf) - 1] != (char)'/')
+ strcat(dirbuf, "/");
} else {
getcwd(dirbuf, MAX_DIR_PATH_LEN - 16);
strcat(dirbuf, "/");
ToggleWidgets *pToggleWidgets)
{
Arg args[20];
- register int n;
+ int n;
XmString label_string;
/* -----> Create Radio Box */
CreateSaveAsDialog(Editor *pPad)
{
Arg args[20];
- register int n;
+ int n;
XmString label_string;
char buf[256];
SaveAs *pSaveAs = &pPad->fileStuff.fileWidgets.saveAs;
Editor *pPad )
{
Arg al[10]; /* arg list */
- register int ac; /* arg count */
+ int ac; /* arg count */
XmString tmpStr;
Select *pSelect = &pPad->fileStuff.fileWidgets.select;
Editor *pPad )
{
Arg al[10]; /* arg list */
- register int ac; /* arg count */
+ int ac; /* arg count */
char buf[256];
Widget w, kid[5];
Pixel foreground, background;
Editor *pPad)
{
Arg al[10]; /* arg list */
- register int ac; /* arg count */
+ int ac; /* arg count */
char *tmp = NULL;
XmString tmpStr;
Select *pSelect = &pPad->fileStuff.fileWidgets.select;