diff --git a/src/app/Dictionary.h b/src/app/Dictionary.h index b9399f5..42b69d7 100644 --- a/src/app/Dictionary.h +++ b/src/app/Dictionary.h @@ -19,8 +19,8 @@ namespace DictionaryHelper { if(string == NULL) { - _string = (char *) malloc((sizeof(char)) * 2); //+1 for the string terminating character - strcpy(_string, ""); + _string = (char *) malloc((sizeof(char))); + _string[0] = '\0'; } else {