1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-16 00:23:52 +03:00

r18304: fixed misuse of size_t in dopr()

(This used to be commit d082a3c5f5)
This commit is contained in:
Andrew Tridgell
2006-09-09 10:29:13 +00:00
committed by Gerald (Jerry) Carter
parent e8c5627417
commit 4e99d06ee7

View File

@@ -224,7 +224,7 @@ struct pr_chunk_x {
int num;
};
static size_t dopr(char *buffer, size_t maxlen, const char *format,
static int dopr(char *buffer, size_t maxlen, const char *format,
va_list args_in);
static void fmtstr(char *buffer, size_t *currlen, size_t maxlen,
char *value, int flags, int min, int max);
@@ -237,7 +237,7 @@ static struct pr_chunk *new_chunk(void);
static int add_cnk_list_entry(struct pr_chunk_x **list,
int max_num, struct pr_chunk *chunk);
static size_t dopr(char *buffer, size_t maxlen, const char *format, va_list args_in)
static int dopr(char *buffer, size_t maxlen, const char *format, va_list args_in)
{
char ch;
int state;
@@ -251,7 +251,7 @@ static size_t dopr(char *buffer, size_t maxlen, const char *format, va_list args
struct pr_chunk *cnk = NULL;
struct pr_chunk_x *clist = NULL;
int max_pos;
size_t ret = -1;
int ret = -1;
VA_COPY(args, args_in);