Some code improvements

This commit is contained in:
Markus Gans 2015-10-01 05:26:47 +02:00
parent b24c349204
commit 9d301213f1
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,7 @@
The Final Cut [![Build Status](https://travis-ci.org/gansm/finalcut.svg?branch=master)](https://travis-ci.org/gansm/finalcut) [![Coverity Scan Status](https://scan.coverity.com/projects/6508/badge.svg)](https://scan.coverity.com/projects/6508)
[![Build Status](https://travis-ci.org/gansm/finalcut.svg?branch=master)](https://travis-ci.org/gansm/finalcut)
[![Coverity Scan Status](https://scan.coverity.com/projects/6508/badge.svg)](https://scan.coverity.com/projects/6508)
The Final Cut
=============
The Final Cut is a class library and widget toolkit with full mouse support for creating a text-based user interface. The library supports the programmer to develop an application for the text console. It allows the simultaneous handling of multiple windows on the screen.
The C++ class design was inspired by the Qt framework. It provides common controls like dialog windows, push buttons, check boxes, radio buttons, input lines, list boxes, status bars and so on.

View File

@ -659,7 +659,9 @@ char* FOptiMove::cursor_move (int xold, int yold, int xnew, int ynew)
case 5:
move_buf[0] = '\0';
if ( xold >= 0 )
strcat (move_ptr, F_carriage_return.cap);
strncat ( move_ptr
, F_carriage_return.cap
, sizeof(move_buf) - strlen(move_ptr) - 1 );
strncat ( move_ptr
, F_cursor_left.cap
, sizeof(move_buf) - strlen(move_ptr) - 1 );