From bcfe02b21c62d199b735ac01422080017189f6d9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 23 Jan 2008 14:39:16 +0000 Subject: Fix decimal point kludge. git-svn-id: http://svn.drobilla.net/lad/slv2@1102 a436a847-0d15-0410-975c-d299462d15a1 --- src/value.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/value.c') diff --git a/src/value.c b/src/value.c index aed4f65..4724a23 100644 --- a/src/value.c +++ b/src/value.c @@ -50,9 +50,9 @@ slv2_value_new(SLV2World world, SLV2ValueType type, const char* str) struct lconv* locale = localeconv(); if (locale->decimal_point && strcmp(locale->decimal_point, ".")) { assert(strlen(locale->decimal_point) == 1); - char* dec = strchr(str, locale->decimal_point[0]); + char* dec = strchr(str, '.'); if (dec) - *dec = '.'; + *dec = locale->decimal_point[0]; } } -- cgit v1.2.1