void f()
{
-int i;
+int j, i;
char s[11];
char t[11];
-for (i = 0; i <= 10; i++)
+for (j = 0; j <= 10; j++)
{
- s[i] = '\0';
+ s[j] = '\0';
}
for (i = 0; i <= 11; i++)
needed to satisfy precondition:
requires: : maxSet ((buffer @ strncatNotReallyGood.c:4:29 ) ) >= (maxRead
((buffer @ strncatNotReallyGood.c:4:29 ) )) + (( 255 ) )
+ derived from strncat precondition: requires: :
+ maxSet ((<parameter 1> ) ) >= (maxRead ((<parameter 1> ) )) +
+ ((<parameter 3> ) )
Finished LCLint checking --- 8 code errors found