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
/
TermBuffer.c
diff --git
a/cde/lib/DtTerm/Term/TermBuffer.c
b/cde/lib/DtTerm/Term/TermBuffer.c
index 2ae3e93156f7940ec5fdf7ffda42d419755f2c87..095fed270db94065f4dfcdb42abf7bd9834607c9 100644
(file)
--- a/
cde/lib/DtTerm/Term/TermBuffer.c
+++ b/
cde/lib/DtTerm/Term/TermBuffer.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
*/
@@
-39,6
+39,7
@@
static char rcs_id[] = "$TOG: TermBuffer.c /main/2 1997/04/17 18:04:41 samborn $
#define USE_MEMCPY /* use memcpy for line movement... */
#include <Xm/Xm.h>
#define USE_MEMCPY /* use memcpy for line movement... */
#include <Xm/Xm.h>
+#include "TermPrim.h"
#include "TermHeader.h" /* for MIN/MAX */
#include "TermBufferP.h"
#include "TermEnhance.h"
#include "TermHeader.h" /* for MIN/MAX */
#include "TermBufferP.h"
#include "TermEnhance.h"
@@
-46,7
+47,7
@@
static char rcs_id[] = "$TOG: TermBuffer.c /main/2 1997/04/17 18:04:41 samborn $
/*
** clear "count" enhancements starting at startCol
*/
/*
** clear "count" enhancements starting at startCol
*/
-static
+static
void
clearEnhancements
(
TermBuffer tb,
clearEnhancements
(
TermBuffer tb,
@@
-451,7
+452,7
@@
_DtTermBufferFreeBuffer
/*
** clear all the enhancements from startCol through stopCol
*/
/*
** clear all the enhancements from startCol through stopCol
*/
-static
+static
void
clearEnhancements
(
TermBuffer tb,
clearEnhancements
(
TermBuffer tb,
@@
-638,8
+639,8
@@
_DtTermDeleteEnhancement
** end of the line to col
*/
copyCount = WIDTH(line) - (col + width);
** end of the line to col
*/
copyCount = WIDTH(line) - (col + width);
- mem
cpy
(enh + col , enh + col + width,
- copyCount * sizeof(DtTermEnhPart));
+ mem
move
(enh + col , enh + col + width,
+
copyCount * sizeof(DtTermEnhPart));
}
}