diff options
author | Peter Jones <pjones@redhat.com> | 2005-03-02 01:04:05 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2005-03-02 01:04:05 +0000 |
commit | 0183f5c2e6fcd6ee0fc41f89db02035d4402206d (patch) | |
tree | e85a5e7650983835cf39bb622f2ed75a6f682156 /loader2 | |
parent | 6f4095814f70e60cb13c2cce18625c40ad15cdb3 (diff) | |
download | anaconda-0183f5c2e6fcd6ee0fc41f89db02035d4402206d.tar.gz anaconda-0183f5c2e6fcd6ee0fc41f89db02035d4402206d.tar.xz anaconda-0183f5c2e6fcd6ee0fc41f89db02035d4402206d.zip |
Guess what? Something else doesn't check the retval from fgets()
Diffstat (limited to 'loader2')
-rw-r--r-- | loader2/loadermisc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader2/loadermisc.c b/loader2/loadermisc.c index 4d083fc12..276bf2f71 100644 --- a/loader2/loadermisc.c +++ b/loader2/loadermisc.c @@ -72,9 +72,9 @@ int copyFile(char * source, char * dest) { } char * readLine(FILE * f) { - char buf[1024]; + char buf[1024], *ret; - fgets(buf, sizeof(buf), f); + ret = fgets(buf, sizeof(buf), f); /* chop */ buf[strlen(buf) - 1] = '\0'; |