strange problem with self-compiled software on FC 5 T2...

John Reiser jreiser at BitWagon.com
Tue Feb 7 05:26:28 UTC 2006


>>     rv = fscanf(input, "%s %d %lf %lf %lf %lf", &c, &SatNr,
>>          &x, &y, &z, &korr);
>>

Elsewhere in this topic, Ulrich Drepper notes that the format conversion
"%s" does not match the argument &c, and therefore the source has a bug.

Gcc will catch analogous mismatches in source calls to *printf(), so
this case is another instance that would benefit from an enhancement
to gcc to perform similar checking for *scanf().

-- 




More information about the fedora-test-list mailing list