summaryrefslogtreecommitdiffstats
path: root/loader2/lang.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2005-03-02 01:08:30 +0000
committerPeter Jones <pjones@redhat.com>2005-03-02 01:08:30 +0000
commit7b557dff84fd4a330589c969c2d423460aab0823 (patch)
tree8ae8b5cb1e946064d709870e95ceff9f905ff0da /loader2/lang.c
parent3c9129e61c6374936182b8b5c78ca50fdcc21e76 (diff)
downloadanaconda-7b557dff84fd4a330589c969c2d423460aab0823.tar.gz
anaconda-7b557dff84fd4a330589c969c2d423460aab0823.tar.xz
anaconda-7b557dff84fd4a330589c969c2d423460aab0823.zip
put read's return value into a variable
Diffstat (limited to 'loader2/lang.c')
-rw-r--r--loader2/lang.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader2/lang.c b/loader2/lang.c
index 009e999d4..7ddc79acd 100644
--- a/loader2/lang.c
+++ b/loader2/lang.c
@@ -187,10 +187,10 @@ void loadLanguage (char * file, int flags) {
}
strings[numStrings].hash = ntohl(hash);
- read(fd, &strings[numStrings].length, 2);
+ rc = read(fd, &strings[numStrings].length, 2);
strings[numStrings].length = ntohs(strings[numStrings].length);
strings[numStrings].str = malloc(strings[numStrings].length + 1);
- read(fd, strings[numStrings].str, strings[numStrings].length);
+ rc = read(fd, strings[numStrings].str, strings[numStrings].length);
strings[numStrings].str[strings[numStrings].length] = '\0';
numStrings++;
}