Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion sources/fwrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
#include <errno.h>
#include "lib.h"

#define BUFSIZE 8192
/*
* Size of the stack buffer used to insert carriage returns in text mode.
* Keep it small: programs may run with a small stack (_stksize), and the
* data is written in chunks of this size anyway.
*/
#define BUFSIZE 512

size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream)
{
Expand Down
Loading