scummvm random work
[patches.git] / glibc-handle-long-kernel-versions.patch
1 2007-07-07 Mike Frysinger <vapier@gentoo.org>
2
3 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Break
4 after reading the first 3 parts of the kernel version.
5
6 --- libc/sysdeps/unix/sysv/linux/dl-osinfo.h
7 +++ libc/sysdeps/unix/sysv/linux/dl-osinfo.h
8 @@ -112,7 +112,7 @@ _dl_discover_osversion (void)
9 version = 0;
10 parts = 0;
11 cp = buf;
12 - while ((*cp >= '0') && (*cp <= '9'))
13 + while ((*cp >= '0') && (*cp <= '9') && parts < 3)
14 {
15 unsigned int here = *cp++ - '0';
16