 
                            ...
| Code Block | ||
|---|---|---|
| 
 | ||
| 
struct {
    char c;
    float f;
} myData;
if (fscanf(fd, "%c %f\n", &myData.c, &myData.f) != 2) {
    /* Handle error */
}
 | 
...
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
...