diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2017-07-09 12:44:33 -0700 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2017-07-09 12:44:33 -0700 |
commit | 06d79f9242e427b13e67ff72b3948902992f9b54 (patch) | |
tree | b5437bfc2f78cbd6f5c35ad573e3448fa1b3e00d /modules/computer/os.c | |
parent | 9fcb3abe7e54edc09d8fb76d1b28bd5f2c406bff (diff) |
Use strchr() instead of strstr() when looking for a single char
Diffstat (limited to 'modules/computer/os.c')
-rw-r--r-- | modules/computer/os.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++; } |