From 9513842bf37190147941e11990b303dd83df4655 Mon Sep 17 00:00:00 2001 From: Anton Arapov Date: Mon, 7 Dec 2009 15:13:45 +0100 Subject: kerneloops: fix the linux kernel version identification 2nd try. change copypasted strchrnul() to strchr()... so that it will work. Credits to Denys. --- lib/Plugins/KerneloopsSysLog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Plugins/KerneloopsSysLog.cpp') diff --git a/lib/Plugins/KerneloopsSysLog.cpp b/lib/Plugins/KerneloopsSysLog.cpp index 0032d385..adff8468 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); -- cgit