John Baldwin 2afeaad315 Various fixes to the load() function.
- Use getline() instead of fgetln().  This ensures the returned string
  is always null-terminated without losing the last character if the
  last line in a file doesn't have a newline.  Also, while fgetln says
  the returned buffer can be modified, that doesn't actually seem safe
  as the current implementation means you are modifying stdio's
  internal buffer.

- Remove a spurious if before an ATF_REQUIRE that was clearly supposed
  to be non-optional.

- Remove a pointless compare of 'ptr' against '\0' (really NULL) that
  duplicated the middle condition in the for().

- Once a comment is found, skip the rest of the line, not just the
  current word.

Reviewed by:	kevans
Obtained from:	CheriBSD
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D26278
2020-09-03 14:50:15 +00:00
..
2019-12-28 02:11:41 +00:00
2020-04-30 22:08:40 +00:00
2018-10-20 22:39:35 +00:00
2020-04-30 22:08:40 +00:00
2017-12-08 17:52:53 +00:00
2019-09-02 01:55:55 +00:00
2020-03-19 06:33:06 +00:00
2020-04-30 22:08:40 +00:00
2020-04-30 22:08:40 +00:00
2020-07-19 23:56:19 +00:00
2019-12-11 17:37:53 +00:00