#include <string.h>

//------------------------------------------------------------------------------
// MyBadFunction
//------------------------------------------------------------------------------
void MyBadFunction(void)
{
  char ansiBuf[0x10] = {"\x1b["};
  unsigned short len;

  len = strlen(ansiBuf);

  ansiBuf[len] = 'C';
  ansiBuf[len + 1] = '\x0';
}

//------------------------------------------------------------------------------
// MyGoodFunction1
//------------------------------------------------------------------------------
void MyGoodFunction1(void)
{
  char ansiBuf[0x10] = {"\x1b["};
  unsigned short len;

  len = 0;

  ansiBuf[len] = 'C';
  ansiBuf[len + 1] = '\x0';
}

//------------------------------------------------------------------------------
// MyGoodFunction2
//------------------------------------------------------------------------------
void MyGoodFunction2(void)
{
  static char ansiBuf[0x10] = {"\x1b["};
  unsigned short len;

  len = strlen(ansiBuf);

  ansiBuf[len] = 'C';
  ansiBuf[len + 1] = '\x0';
}
