fix %% in snprintf

SVN revision: 34564
This commit is contained in:
Carsten Haitzler 2008-05-14 06:10:58 +00:00
parent db311f0b05
commit 2c60edf612
1 changed files with 1 additions and 0 deletions

View File

@ -297,6 +297,7 @@ _embryo_str_snprintf(Embryo_Program *ep, Embryo_Cell *params)
}
inesc = 0;
}
if ((insub) && (s1[i] == '%')) pnum++;
if ((insub) && (p < pnum))
{
switch (s1[i])