diff options
author | Anton Arapov <aarapov@redhat.com> | 2009-12-07 15:13:45 +0100 |
---|---|---|
committer | Anton Arapov <aarapov@redhat.com> | 2009-12-07 15:13:45 +0100 |
commit | 9513842bf37190147941e11990b303dd83df4655 (patch) | |
tree | c211939a2f1146af2526eae3e507073716fdee78 /lib/Plugins/KerneloopsSysLog.cpp | |
parent | 028affb1067dbdc8b7408ba85a7a242d6c2c42e9 (diff) | |
download | abrt-9513842bf37190147941e11990b303dd83df4655.tar.gz abrt-9513842bf37190147941e11990b303dd83df4655.tar.xz abrt-9513842bf37190147941e11990b303dd83df4655.zip |
kerneloops: fix the linux kernel version identification 2nd try.
change copypasted strchrnul() to strchr()... so that it will work.
Credits to Denys.
Diffstat (limited to 'lib/Plugins/KerneloopsSysLog.cpp')
-rw-r--r-- | lib/Plugins/KerneloopsSysLog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Plugins/KerneloopsSysLog.cpp b/lib/Plugins/KerneloopsSysLog.cpp index 0032d38..adff846 100644 --- a/lib/Plugins/KerneloopsSysLog.cpp +++ b/lib/Plugins/KerneloopsSysLog.cpp @@ -52,7 +52,7 @@ static int extract_version(const char *linepointer, char *version) start = strstr((char*)linepointer, "2.6."); if (start) { - end = strchrnul(start, ')'); + end = strchr(start, ')'); if (!end) end = strchrnul(start, ' '); strncpy(version, start, end-start); |