Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
char buf[1024];

if (fgets(buf, sizeof(buf), fp) != NULL) {
	  if (buf[0] != '\0' && buf[strlen(buf) - 1] == '\n')
		 {
    buf[strlen(buf) - 1] = '\0';
  }
}

Risk Assessment

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

FI037-C

1 (low)

1 (unlikely)

3 (low)

P3

L3

...