projects
/
oweals
/
cde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libDtSearch: Coverity 86579
[oweals/cde.git]
/
cde
/
lib
/
DtTerm
/
Term
/
TermParse.c
diff --git
a/cde/lib/DtTerm/Term/TermParse.c
b/cde/lib/DtTerm/Term/TermParse.c
index 554c6a2461c1215fabf6d20c5122082b2e9dd923..594b3c62a4519c26c84f8c937d8d23d4e895ab2b 100644
(file)
--- a/
cde/lib/DtTerm/Term/TermParse.c
+++ b/
cde/lib/DtTerm/Term/TermParse.c
@@
-16,7
+16,7
@@
* details.
*
* You should have received a copy of the GNU Lesser General Public
* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librar
ar
ies 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
*/
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
@@
-36,6
+36,8
@@
static char rcs_id[] = "$TOG: TermParse.c /main/3 1999/10/15 12:25:13 mgreess $"
* (c) Copyright 1996 Hitachi. *
*/
* (c) Copyright 1996 Hitachi. *
*/
+#include <wctype.h>
+
#include "TermHeader.h"
#include "TermPrimDebug.h"
#include "TermPrimP.h"
#include "TermHeader.h"
#include "TermPrimDebug.h"
#include "TermPrimP.h"
@@
-50,6
+52,8
@@
static char rcs_id[] = "$TOG: TermParse.c /main/3 1999/10/15 12:25:13 mgreess $"
#include "TermFunctionKey.h"
#include "TermParseTableP.h"
#include "TermBufferP.h"
#include "TermFunctionKey.h"
#include "TermParseTableP.h"
#include "TermBufferP.h"
+#include "TermPrimUtil.h"
+#include "TermPrimParseTable.h"
#if defined (__hpux)
/*
#if defined (__hpux)
/*
@@
-63,11
+67,6
@@
static char rcs_id[] = "$TOG: TermParse.c /main/3 1999/10/15 12:25:13 mgreess $"
#include <values.h>
#endif
#include <values.h>
#endif
-#if defined(USL) || defined(__uxp__)
-#include <ctype.h>
-#include <wctype.h>
-#endif
-
/*****************************************************************************/
#define NPARAM 16
/*****************************************************************************/
#define NPARAM 16
@@
-274,7
+273,7
@@
_DtTermPModeSet(Widget w) /* DECSET CSI?ph */
/* case 2: can't return from vt52 mode */
case 3: /* Column (132) */
if ( vtw->vt.c132 ) { /* xterm allow 132 mode */
/* case 2: can't return from vt52 mode */
case 3: /* Column (132) */
if ( vtw->vt.c132 ) { /* xterm allow 132 mode */
- (void) _DtTermFuncClearBuffer(w,
NULL
, fromParser);
+ (void) _DtTermFuncClearBuffer(w,
0
, fromParser);
vtw->term.tpd->cursorRow = TOPROW(vtw) ;
vtw->term.tpd->cursorColumn = FIRSTCOLUMN(vtw) ;
vtw->term.tpd->scrollLockTopRow = TOPROW(vtw);
vtw->term.tpd->cursorRow = TOPROW(vtw) ;
vtw->term.tpd->cursorColumn = FIRSTCOLUMN(vtw) ;
vtw->term.tpd->scrollLockTopRow = TOPROW(vtw);
@@
-362,7
+361,7
@@
_DtTermPModeReset(Widget w) /* DECRST CSI?pl */
/* case 2: ** set vt52 mode */
case 3: /* Column (80) */
if (vtw->vt.c132) { /* allow 132 mode */
/* case 2: ** set vt52 mode */
case 3: /* Column (80) */
if (vtw->vt.c132) { /* allow 132 mode */
- (void) _DtTermFuncClearBuffer(w,
NULL
, fromParser);
+ (void) _DtTermFuncClearBuffer(w,
0
, fromParser);
vtw->term.tpd->cursorRow = TOPROW(vtw) ;
vtw->term.tpd->cursorColumn = FIRSTCOLUMN(vtw) ;
vtw->term.tpd->scrollLockTopRow = TOPROW(vtw);
vtw->term.tpd->cursorRow = TOPROW(vtw) ;
vtw->term.tpd->cursorColumn = FIRSTCOLUMN(vtw) ;
vtw->term.tpd->scrollLockTopRow = TOPROW(vtw);
@@
-2197,7
+2196,7
@@
_DtTermParseSunMisc /* Misc sun esc seqs */
s = XtMalloc(strlen(icon) + strlen(fmt) + 1);
else
s = buf;
s = XtMalloc(strlen(icon) + strlen(fmt) + 1);
else
s = buf;
- sprintf(s,fmt);
+ sprintf(s,
"%s",
fmt);
sendEscSequence(w,s) ;
if (s != buf) XtFree(s);
break ;
sendEscSequence(w,s) ;
if (s != buf) XtFree(s);
break ;
@@
-2208,7
+2207,7
@@
_DtTermParseSunMisc /* Misc sun esc seqs */
s = XtMalloc(strlen(icon) + strlen(fmt) + 1);
else
s = buf;
s = XtMalloc(strlen(icon) + strlen(fmt) + 1);
else
s = buf;
- sprintf(s,fmt);
+ sprintf(s,
"%s",
fmt);
sendEscSequence(w,s) ;
if (s != buf) XtFree(s);
break ;
sendEscSequence(w,s) ;
if (s != buf) XtFree(s);
break ;