From fd56deb7dd7c227c56a267719c0449ece97c19b1 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Mon, 3 Oct 2011 08:52:30 +0300 Subject: [PATCH] Use strchr() when searching for a single character --- src/strconv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strconv.c b/src/strconv.c index 2487060..801fad2 100644 --- a/src/strconv.c +++ b/src/strconv.c @@ -29,7 +29,7 @@ static void to_locale(strbuffer_t *strbuffer) return; } - pos = strstr(strbuffer->value, "."); + pos = strchr(strbuffer->value, '.'); if(pos) *pos = *point; } @@ -45,7 +45,7 @@ static void from_locale(char *buffer) return; } - pos = strstr(buffer, point); + pos = strchr(buffer, *point); if(pos) *pos = '.'; } -- 2.1.4