summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ChangeLog4
-rw-r--r--lib/stream.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index c4054d00..4573839d 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2005-02-19 Paul Jakma <paul.jakma@sun.com>
+
+ * stream.c: (stream_new) fix dumb mistake.
+
2005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* stream.c: (stream_read_try) Use new ERRNO_IO_RETRY macro.
diff --git a/lib/stream.c b/lib/stream.c
index a50835eb..821ad6e5 100644
--- a/lib/stream.c
+++ b/lib/stream.c
@@ -99,7 +99,7 @@ stream_new (size_t size)
return NULL;
}
- s = XCALLOC (MTYPE_STREAM, offsetof(struct stream, size));
+ s = XCALLOC (MTYPE_STREAM, offsetof(struct stream, data[size]));
if (s == NULL)
return s;