Merge "Bug 3330205 Put blanks and zeroes in const area"
This commit is contained in:
commit
f4e10b721e
@ -48,7 +48,7 @@ __LIBC_HIDDEN__ int
|
|||||||
__sfvwrite(FILE *fp, struct __suio *uio)
|
__sfvwrite(FILE *fp, struct __suio *uio)
|
||||||
{
|
{
|
||||||
size_t len;
|
size_t len;
|
||||||
char *p;
|
const char *p;
|
||||||
struct __siov *iov;
|
struct __siov *iov;
|
||||||
int w, s;
|
int w, s;
|
||||||
char *nl;
|
char *nl;
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
* I/O descriptors for __sfvwrite().
|
* I/O descriptors for __sfvwrite().
|
||||||
*/
|
*/
|
||||||
struct __siov {
|
struct __siov {
|
||||||
void *iov_base;
|
const void *iov_base;
|
||||||
size_t iov_len;
|
size_t iov_len;
|
||||||
};
|
};
|
||||||
struct __suio {
|
struct __suio {
|
||||||
|
@ -203,9 +203,9 @@ vfprintf(FILE *fp, const char *fmt0, __va_list ap)
|
|||||||
* below longer.
|
* below longer.
|
||||||
*/
|
*/
|
||||||
#define PADSIZE 16 /* pad chunk size */
|
#define PADSIZE 16 /* pad chunk size */
|
||||||
static char blanks[PADSIZE] =
|
static const char blanks[PADSIZE] =
|
||||||
{' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' '};
|
{' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' '};
|
||||||
static char zeroes[PADSIZE] =
|
static const char zeroes[PADSIZE] =
|
||||||
{'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'};
|
{'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user