diff options
author | paul <paul> | 2005-02-19 01:17:07 +0000 |
---|---|---|
committer | paul <paul> | 2005-02-19 01:17:07 +0000 |
commit | 109ac96f0296fd66d5a1d37def44db3cef7ca0fb (patch) | |
tree | aa6e12891391dd9d0a890b2a89c39222ad6409e6 | |
parent | 518cde8d6ce0434b02bd5d7cf7e9627d57af6952 (diff) |
2005-02-19 Paul Jakma <paul.jakma@sun.com>
* stream.c: (stream_new) fix dumb mistake.
-rw-r--r-- | lib/ChangeLog | 4 | ||||
-rw-r--r-- | lib/stream.c | 2 |
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; |