projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
47feb4d
)
Tweak last patch.
author
Bruno Haible
<bruno@clisp.org>
Sun, 10 Jun 2007 11:18:49 +0000
(11:18 +0000)
committer
Bruno Haible
<bruno@clisp.org>
Sun, 10 Jun 2007 11:18:49 +0000
(11:18 +0000)
lib/vasnprintf.c
patch
|
blob
|
history
diff --git
a/lib/vasnprintf.c
b/lib/vasnprintf.c
index 1b4507b517eaa3e0e45bd2466dde9f5f9b4817cc..d9a1c58955f06669f85bb7fe740d64bd82d05b17 100644
(file)
--- a/
lib/vasnprintf.c
+++ b/
lib/vasnprintf.c
@@
-2431,8
+2431,8
@@
VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, const FCHAR_T *format, va_list
int prefixes[2];
#if !USE_SNPRINTF
size_t tmp_length;
int prefixes[2];
#if !USE_SNPRINTF
size_t tmp_length;
-
D
CHAR_T tmpbuf[700];
-
D
CHAR_T *tmp;
+
T
CHAR_T tmpbuf[700];
+
T
CHAR_T *tmp;
#endif
#if !USE_SNPRINTF || NEED_PRINTF_FLAG_ZERO
#endif
#if !USE_SNPRINTF || NEED_PRINTF_FLAG_ZERO
@@
-2675,16
+2675,16
@@
VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, const FCHAR_T *format, va_list
tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */
}
tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */
}
- if (tmp_length <= sizeof (tmpbuf) / sizeof (
D
CHAR_T))
+ if (tmp_length <= sizeof (tmpbuf) / sizeof (
T
CHAR_T))
tmp = tmpbuf;
else
{
tmp = tmpbuf;
else
{
- size_t tmp_memsize = xtimes (tmp_length, sizeof (
D
CHAR_T));
+ size_t tmp_memsize = xtimes (tmp_length, sizeof (
T
CHAR_T));
if (size_overflow_p (tmp_memsize))
/* Overflow, would lead to out of memory. */
goto out_of_memory;
if (size_overflow_p (tmp_memsize))
/* Overflow, would lead to out of memory. */
goto out_of_memory;
- tmp = (
D
CHAR_T *) malloc (tmp_memsize);
+ tmp = (
T
CHAR_T *) malloc (tmp_memsize);
if (tmp == NULL)
/* Out of memory. */
goto out_of_memory;
if (tmp == NULL)
/* Out of memory. */
goto out_of_memory;