oops - textblock badness with alloca

SVN revision: 18778
This commit is contained in:
Carsten Haitzler 2005-12-02 03:20:56 +00:00
parent 1406d86f53
commit 1d9ef01856
1 changed files with 2 additions and 2 deletions

View File

@ -858,7 +858,7 @@ _format_command(Evas_Object *obj, Evas_Object_Textblock_Format *fmt, char *cmd,
{
char *ts, *p;
ts = alloca(strlen(param));
ts = alloca(strlen(param) + 1);
strcpy(ts, param);
p = strchr(ts, '%');
*p = 0;
@ -885,7 +885,7 @@ _format_command(Evas_Object *obj, Evas_Object_Textblock_Format *fmt, char *cmd,
{
char *ts, *p;
ts = alloca(strlen(param));
ts = alloca(strlen(param) + 1);
strcpy(ts, param);
p = strchr(ts, '%');
*p = 0;