Cleanups.

committer: mfx <mfx> 1059739807 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2003-08-01 12:10:07 +00:00
parent ab37b5ea0c
commit 365a3c0432
8 changed files with 20 additions and 12 deletions
+2 -2
View File
@@ -703,7 +703,7 @@ static size_t dopr(char *buffer, size_t maxlen, const char *format, va_list args
strvalue = va_arg (args, const char *);
if (!strvalue) strvalue = "(NULL)";
if (max == -1) {
max = strlen(strvalue);
max = (int) strlen(strvalue);
}
if (min > 0 && max >= 0 && min > max) max = min;
fmtstr (buffer, &currlen, maxlen, strvalue, flags, min, max);
@@ -728,7 +728,7 @@ static size_t dopr(char *buffer, size_t maxlen, const char *format, va_list args
} else {
int *num;
num = va_arg (args, int *);
*num = currlen;
*num = (int) currlen;
}
break;
case '%':