public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2115983
)
utsname: small fixes
author
Alan Cox
<alan@linux.intel.com>
Fri, 22 May 2015 23:11:32 +0000
(
00:11
+0100)
committer
Alan Cox
<alan@linux.intel.com>
Fri, 22 May 2015 23:11:32 +0000
(
00:11
+0100)
Library/libs/utsname.c
patch
|
blob
|
history
diff --git
a/Library/libs/utsname.c
b/Library/libs/utsname.c
index
201f096
..
fcca92e
100644
(file)
--- a/
Library/libs/utsname.c
+++ b/
Library/libs/utsname.c
@@
-22,15
+22,15
@@
int uname(struct utsname *utsbuf)
x[0] = utsbuf->release;
x[1] = utsbuf->sysname;
x[2] = utsbuf->version;
- x[2] = utsbuf->machine;
+ x[3] = utsbuf->machine;
+ x[4] = NULL;
bytes -= sizeof(struct _uzisysinfoblk);
while(xp = x[ct++]) {
do {
- *xp++=*p
++
;
+ *xp++=*p;
bytes--;
- }
- while(*p && bytes);
+ } while(*p++ && bytes > 0);
}
return 0;
}