svn commit: samba r18304 - in
branches/SAMBA_4_0/source/lib/replace: .
tridge at samba.org
tridge at samba.org
Sat Sep 9 10:29:13 GMT 2006
Author: tridge
Date: 2006-09-09 10:29:13 +0000 (Sat, 09 Sep 2006)
New Revision: 18304
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18304
Log:
fixed misuse of size_t in dopr()
Modified:
branches/SAMBA_4_0/source/lib/replace/snprintf.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/snprintf.c
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/snprintf.c 2006-09-09 10:24:42 UTC (rev 18303)
+++ branches/SAMBA_4_0/source/lib/replace/snprintf.c 2006-09-09 10:29:13 UTC (rev 18304)
@@ -224,7 +224,7 @@
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 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 @@
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);
More information about the samba-cvs
mailing list