X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cde%2Fprograms%2Fdtpad%2FfileDlg.c;h=3ee3619aae0a6c7a36e2de2de075c16b6e356c26;hb=f0a6172d3fa3cf2c1b370e85fa135dbdfa0c7a56;hp=b17dae36a9c7c02a32799a849e1d40177da5b973;hpb=c884521619ded86baea5e0a74c8d0d2234c232fe;p=oweals%2Fcde.git diff --git a/cde/programs/dtpad/fileDlg.c b/cde/programs/dtpad/fileDlg.c index b17dae36..3ee3619a 100644 --- a/cde/programs/dtpad/fileDlg.c +++ b/cde/programs/dtpad/fileDlg.c @@ -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 */ @@ -182,7 +182,7 @@ SetSaveAsDirAndFile(Editor *pPad) int firstSelect = -1, lastSelect = -1; Widget textField; Arg args[5]; - register int n; + int n; XmString dirString; dirbuf[0] = (char) '\0'; @@ -225,8 +225,8 @@ SetSaveAsDirAndFile(Editor *pPad) 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, "/"); @@ -263,7 +263,7 @@ CreateNewLineToggles( ToggleWidgets *pToggleWidgets) { Arg args[20]; - register int n; + int n; XmString label_string; /* -----> Create Radio Box */ @@ -321,7 +321,7 @@ void CreateSaveAsDialog(Editor *pPad) { Arg args[20]; - register int n; + int n; XmString label_string; char buf[256]; SaveAs *pSaveAs = &pPad->fileStuff.fileWidgets.saveAs; @@ -563,7 +563,7 @@ CreateFileSelectionDialog( Editor *pPad ) { Arg al[10]; /* arg list */ - register int ac; /* arg count */ + int ac; /* arg count */ XmString tmpStr; Select *pSelect = &pPad->fileStuff.fileWidgets.select; @@ -618,7 +618,7 @@ CreateSaveWarning( 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; @@ -901,7 +901,7 @@ AskIfSave( 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;