-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge changes from CUPS master@428b1d28c0f275c62a7791c2a12021b1d68674ff
- Loading branch information
1 parent
89590f1
commit 776a0bc
Showing
9 changed files
with
78 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
847cd6432cdf9d62ce2e78e7ba71ce932a51c66c | ||
428b1d28c0f275c62a7791c2a12021b1d68674ff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,7 +171,7 @@ _cups_vsnprintf(char *buffer, /* O - Output buffer */ | |
if ((width + 2) > sizeof(temp)) | ||
break; | ||
|
||
sprintf(temp, tformat, va_arg(ap, double)); | ||
snprintf(temp, sizeof(temp), tformat, va_arg(ap, double)); | ||
templen = strlen(temp); | ||
|
||
bytes += (int)templen; | ||
|
@@ -202,7 +202,7 @@ _cups_vsnprintf(char *buffer, /* O - Output buffer */ | |
if ((width + 2) > sizeof(temp)) | ||
break; | ||
|
||
sprintf(temp, tformat, va_arg(ap, int)); | ||
snprintf(temp, sizeof(temp), tformat, va_arg(ap, int)); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
michaelrsweet
Author
Contributor
|
||
templen = strlen(temp); | ||
|
||
bytes += (int)templen; | ||
|
@@ -226,7 +226,7 @@ _cups_vsnprintf(char *buffer, /* O - Output buffer */ | |
if ((width + 2) > sizeof(temp)) | ||
break; | ||
|
||
sprintf(temp, tformat, va_arg(ap, void *)); | ||
snprintf(temp, sizeof(temp), tformat, va_arg(ap, void *)); | ||
templen = strlen(temp); | ||
|
||
bytes += (int)templen; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Currently this line causes a stack overflow in VS 2017. Don't you want to keep the sprintf's here? They're kind of the base cases for the recursion.