1
0
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:
Kalle Olavi Niemitalo 2007-01-28 01:39:45 +02:00 committed by Kalle Olavi Niemitalo
parent ac339cf5e5
commit 03ccf0b2b1
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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. */