author | Max Kellermann <max@duempel.org> | |
Mon, 6 Oct 2008 12:55:20 +0000 (14:55 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 6 Oct 2008 12:55:20 +0000 (14:55 +0200) | ||
commit | dc190f330bba1632e76ca6993c22865f0da88f2c | |
tree | 7ac72fbdcabbaf4b4e7591372697897667390b16 | tree | snapshot |
parent | 458cad80dfe71f4650aebb0b9710a3a683fd6379 | commit | diff |
wreadln: static buffer
Since the buffer size is already known at compile time, don't do a
second malloc() for it, declare it statically in struct wreadln. This
way, it is going to be allocated on the stack.
Since the buffer size is already known at compile time, don't do a
second malloc() for it, declare it statically in struct wreadln. This
way, it is going to be allocated on the stack.
src/wreadln.c | diff | blob | history |