projects
/
profile
/
ivi
/
jansson.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d7ddbf3
)
Use strchr() when searching for a single character
author
Petri Lehtinen
<petri@digip.org>
Mon, 3 Oct 2011 05:52:30 +0000
(08:52 +0300)
committer
Petri Lehtinen
<petri@digip.org>
Mon, 3 Oct 2011 05:52:30 +0000
(08:52 +0300)
src/strconv.c
patch
|
blob
|
history
diff --git
a/src/strconv.c
b/src/strconv.c
index
2487060
..
801fad2
100644
(file)
--- a/
src/strconv.c
+++ b/
src/strconv.c
@@
-29,7
+29,7
@@
static void to_locale(strbuffer_t *strbuffer)
return;
}
- pos = str
str(strbuffer->value, "."
);
+ pos = str
chr(strbuffer->value, '.'
);
if(pos)
*pos = *point;
}
@@
-45,7
+45,7
@@
static void from_locale(char *buffer)
return;
}
- pos = str
str(buffer,
point);
+ pos = str
chr(buffer, *
point);
if(pos)
*pos = '.';
}