From 9d301213f18e941a9a25ef57a3e6a072b4620e4f Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Thu, 1 Oct 2015 05:26:47 +0200 Subject: [PATCH] Some code improvements --- README.md | 4 +++- src/foptimove.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b1de4ccb..c22a3cc4 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/foptimove.cpp b/src/foptimove.cpp index fa792d88..ee91a7aa 100644 --- a/src/foptimove.cpp +++ b/src/foptimove.cpp @@ -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 );