Merge "Bug 3330205 Put blanks and zeroes in const area"

This commit is contained in:
Glenn Kasten 2011-01-16 08:50:20 -08:00 committed by Android (Google) Code Review
commit f4e10b721e
3 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ __LIBC_HIDDEN__ int
__sfvwrite(FILE *fp, struct __suio *uio)
{
size_t len;
char *p;
const char *p;
struct __siov *iov;
int w, s;
char *nl;

View File

@ -36,7 +36,7 @@
* I/O descriptors for __sfvwrite().
*/
struct __siov {
void *iov_base;
const void *iov_base;
size_t iov_len;
};
struct __suio {

View File

@ -203,9 +203,9 @@ vfprintf(FILE *fp, const char *fmt0, __va_list ap)
* below longer.
*/
#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'};
/*