mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
add_to_strn: Let the src parameter point to const.
This commit is contained in:
parent
ac339cf5e5
commit
03ccf0b2b1
@ -97,7 +97,7 @@ stracpy(const unsigned char *src)
|
||||
|
||||
|
||||
void
|
||||
add_to_strn(unsigned char **dst, unsigned char *src)
|
||||
add_to_strn(unsigned char **dst, const unsigned char *src)
|
||||
{
|
||||
unsigned char *newdst;
|
||||
int dstlen;
|
||||
|
@ -43,7 +43,7 @@ unsigned char *debug_stracpy(const unsigned char *, int, const unsigned char *);
|
||||
|
||||
/* Concatenates @src to @str. */
|
||||
/* If reallocation of @str fails @str is not touched. */
|
||||
void add_to_strn(unsigned char **str, unsigned char *src);
|
||||
void add_to_strn(unsigned char **str, const unsigned char *src);
|
||||
|
||||
/* Inserts @seqlen chars from @seq at position @pos in the @dst string. */
|
||||
/* If reallocation of @dst fails it is not touched and NULL is returned. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user