Q34
Single choice
An internally developed file-monitoring system identified the following excerpt as causing a program to crash often:
char filedata[100];
fp = fopen(`access.log`, `r`);
srtcopy (filedata, fp);
printf (`%s\n`, filedata);
Which of the following should a security analyst recommend to fix the issue?