mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -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
|
void
|
||||||
add_to_strn(unsigned char **dst, unsigned char *src)
|
add_to_strn(unsigned char **dst, const unsigned char *src)
|
||||||
{
|
{
|
||||||
unsigned char *newdst;
|
unsigned char *newdst;
|
||||||
int dstlen;
|
int dstlen;
|
||||||
|
@ -43,7 +43,7 @@ unsigned char *debug_stracpy(const unsigned char *, int, const unsigned char *);
|
|||||||
|
|
||||||
/* Concatenates @src to @str. */
|
/* Concatenates @src to @str. */
|
||||||
/* If reallocation of @str fails @str is not touched. */
|
/* 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. */
|
/* 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. */
|
/* If reallocation of @dst fails it is not touched and NULL is returned. */
|
||||||
|
Loading…
Reference in New Issue
Block a user