mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
use %ld when printf()ing long variables (and removed use of 'register')
This commit is contained in:
parent
38b6016dfa
commit
d687eed33e
@ -611,7 +611,8 @@ static int dprintf_formatf(
|
|||||||
char alt;
|
char alt;
|
||||||
|
|
||||||
/* Width of a field. */
|
/* Width of a field. */
|
||||||
register long width;
|
long width;
|
||||||
|
|
||||||
/* Precision of a field. */
|
/* Precision of a field. */
|
||||||
long prec;
|
long prec;
|
||||||
|
|
||||||
@ -913,11 +914,11 @@ static int dprintf_formatf(
|
|||||||
|
|
||||||
if(width >= 0) {
|
if(width >= 0) {
|
||||||
/* RECURSIVE USAGE */
|
/* RECURSIVE USAGE */
|
||||||
fptr += curl_msprintf(fptr, "%d", width);
|
fptr += curl_msprintf(fptr, "%ld", width);
|
||||||
}
|
}
|
||||||
if(prec >= 0) {
|
if(prec >= 0) {
|
||||||
/* RECURSIVE USAGE */
|
/* RECURSIVE USAGE */
|
||||||
fptr += curl_msprintf(fptr, ".%d", prec);
|
fptr += curl_msprintf(fptr, ".%ld", prec);
|
||||||
}
|
}
|
||||||
if (p->flags & FLAGS_LONG)
|
if (p->flags & FLAGS_LONG)
|
||||||
strcat(fptr, "l");
|
strcat(fptr, "l");
|
||||||
|
Loading…
Reference in New Issue
Block a user