diff options
author | Anton Arapov <aarapov@redhat.com> | 2009-12-07 13:49:45 +0100 |
---|---|---|
committer | Anton Arapov <aarapov@redhat.com> | 2009-12-07 13:49:45 +0100 |
commit | b9662dbc100d150a4ce4e8be0538d3b32105d7f1 (patch) | |
tree | dc143dcfbfc1b7af5b6af326255e56d0161a466a | |
parent | e9da95e505ad050f73f3f87c907f47dc07d5bff1 (diff) | |
download | abrt-b9662dbc100d150a4ce4e8be0538d3b32105d7f1.tar.gz abrt-b9662dbc100d150a4ce4e8be0538d3b32105d7f1.tar.xz abrt-b9662dbc100d150a4ce4e8be0538d3b32105d7f1.zip |
kerneloops: fix the linux kernel version identification
version string can and by ')' in some of the reports
-rw-r--r-- | lib/Plugins/KerneloopsSysLog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Plugins/KerneloopsSysLog.cpp b/lib/Plugins/KerneloopsSysLog.cpp index fdb4a029..0032d385 100644 --- a/lib/Plugins/KerneloopsSysLog.cpp +++ b/lib/Plugins/KerneloopsSysLog.cpp @@ -52,7 +52,9 @@ static int extract_version(const char *linepointer, char *version) start = strstr((char*)linepointer, "2.6."); if (start) { - end = strchrnul(start, ' '); + end = strchrnul(start, ')'); + if (!end) + end = strchrnul(start, ' '); strncpy(version, start, end-start); ret = 1; } |