forked from enlightenment/efl
edje: Fix warnings introduced in recent fix
Seeb9b0177d5e
Seed3420cd35c
This commit is contained in:
parent
9dd997f389
commit
cebfc8d808
|
@ -388,7 +388,7 @@ next_token(char *p, char *end, char **new_p, int *delim)
|
||||||
tmpstr = alloca(l + 1);
|
tmpstr = alloca(l + 1);
|
||||||
strncpy(tmpstr, p, l);
|
strncpy(tmpstr, p, l);
|
||||||
tmpstr[l] = 0;
|
tmpstr[l] = 0;
|
||||||
if (l >= sizeof(fl))
|
if (l >= (int)sizeof(fl))
|
||||||
{
|
{
|
||||||
ERR("Line too long: %i chars: %s", l, tmpstr);
|
ERR("Line too long: %i chars: %s", l, tmpstr);
|
||||||
err_show();
|
err_show();
|
||||||
|
|
|
@ -296,7 +296,7 @@ next_token(char *p, char *end, char **new_p, int *delim)
|
||||||
}
|
}
|
||||||
strncpy(tmpstr, p, l);
|
strncpy(tmpstr, p, l);
|
||||||
tmpstr[l] = 0;
|
tmpstr[l] = 0;
|
||||||
if (l >= sizeof(fl))
|
if (l >= (int)sizeof(fl))
|
||||||
{
|
{
|
||||||
ERR("Line too long: %i chars: %s", l, tmpstr);
|
ERR("Line too long: %i chars: %s", l, tmpstr);
|
||||||
exit(-1);
|
exit(-1);
|
||||||
|
|
Loading…
Reference in New Issue