mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
encode_uri_string: Let name point to const.
This commit is contained in:
parent
ab92c38ca2
commit
d17005e23f
@ -1319,11 +1319,11 @@ safe_char(unsigned char c)
|
||||
}
|
||||
|
||||
void
|
||||
encode_uri_string(struct string *string, unsigned char *name, int namelen,
|
||||
encode_uri_string(struct string *string, const unsigned char *name, int namelen,
|
||||
int convert_slashes)
|
||||
{
|
||||
unsigned char n[4];
|
||||
unsigned char *end;
|
||||
const unsigned char *end;
|
||||
|
||||
n[0] = '%';
|
||||
n[3] = '\0';
|
||||
|
@ -278,7 +278,7 @@ int get_uri_port(struct uri *uri);
|
||||
/* Encode and add @namelen bytes from @name to @string. If @namelen is -1 it is
|
||||
* set to strlen(@name). If the boolean convert_slashes is zero '/'-chars will
|
||||
* not be encoded. */
|
||||
void encode_uri_string(struct string *string, unsigned char *name, int namelen,
|
||||
void encode_uri_string(struct string *string, const unsigned char *name, int namelen,
|
||||
int convert_slashes);
|
||||
|
||||
/* special version for Windows directory listing */
|
||||
|
Loading…
Reference in New Issue
Block a user