projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fc4a41
)
Undo first part of last patch.
author
Bruno Haible
<bruno@clisp.org>
Mon, 19 Mar 2007 01:02:27 +0000
(
01:02
+0000)
committer
Bruno Haible
<bruno@clisp.org>
Mon, 19 Mar 2007 01:02:27 +0000
(
01:02
+0000)
ChangeLog
patch
|
blob
|
history
lib/vasnprintf.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index 034d46dc7d147b31e6b54e56c27514e22d6b6afd..99a8e8b6486ddf2af66d102594f89c27ad2daab9 100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,3
+1,8
@@
+2007-03-18 Bruno Haible <bruno@clisp.org>
+
+ * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
+ Suggested by Eric Blake.
+
2007-03-18 Ben Pfaff <blp@gnu.org>
* doc/relocatable.texi: Recommend using as prefix a directory
diff --git
a/lib/vasnprintf.c
b/lib/vasnprintf.c
index 8d0f516768b5dfbc22dbfaa01141af8bac3df65d..b67b507479ef62ea0ece7320850ecf8d34054184 100644
(file)
--- a/
lib/vasnprintf.c
+++ b/
lib/vasnprintf.c
@@
-184,10
+184,6
@@
VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
{
result = resultbuf;
allocated = *lengthp;
- /* POSIX says that snprintf() fails with EOVERFLOW when the specified
- buffer size is larger than INT_MAX. Let's do the same here. */
- if (allocated > INT_MAX)
- goto overflow;
}
else
{