projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add const modifier for two ICU utils
[yaz-moved-to-github.git]
/
src
/
uri.c
diff --git
a/src/uri.c
b/src/uri.c
index
ed1350a
..
c05a054
100644
(file)
--- a/
src/uri.c
+++ b/
src/uri.c
@@
-25,11
+25,9
@@
static int hex_digit (int ch)
static void encode_uri_char(char *dst, char ch)
{
static void encode_uri_char(char *dst, char ch)
{
- if (ch == ' ')
- strcpy(dst, "+");
/* mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")" */
/* mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")" */
- else if ((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') ||
- (ch >= '0' && ch <= '9') || strchr("-_.!~*'(|)", ch))
+ if ((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') ||
+ (ch >= '0' && ch <= '9') || strchr("-_.!~*'(|)", ch))
{
dst[0] = ch;
dst[1] = '\0';
{
dst[0] = ch;
dst[1] = '\0';