From 06d79f9242e427b13e67ff72b3948902992f9b54 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sun, 9 Jul 2017 12:44:33 -0700 Subject: Use strchr() instead of strstr() when looking for a single char --- modules/computer/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/computer') diff --git a/modules/computer/os.c b/modules/computer/os.c index ab887547..5d06d44b 100644 --- a/modules/computer/os.c +++ b/modules/computer/os.c @@ -66,7 +66,7 @@ get_libc_version(void) if (libs[i].try_ver_str) { /* skip the first word, likely "ldconfig" or name of utility */ - ver_str = strstr(p, " "); + ver_str = strchr(p, ' '); if (ver_str) ver_str++; } -- cgit v1.2.3