aboutsummaryrefslogtreecommitdiff
path: root/src/espik_irc.c
diff options
context:
space:
mode:
authorbeber <beber>2006-01-17 13:26:10 +0000
committerbeber <beber>2006-01-17 13:26:10 +0000
commit5ec18760a8f240dbad3f0cefe29425b2093f02a8 (patch)
tree5e55eba5057a1fbc813b765549b839172f23ec81 /src/espik_irc.c
parent@ (diff)
downloadespik-5ec18760a8f240dbad3f0cefe29425b2093f02a8.tar.xz
no sizeof(char) for malloc
Diffstat (limited to 'src/espik_irc.c')
-rw-r--r--src/espik_irc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/espik_irc.c b/src/espik_irc.c
index 7a0141a..f0cc195 100644
--- a/src/espik_irc.c
+++ b/src/espik_irc.c
@@ -90,7 +90,7 @@ buf_t make_buffer(int len)
buf_t buf;
espik_enter();
- buf.buf = malloc (sizeof(char) * len);
+ buf.buf = malloc (len);
buf.len = len;
espik_leave();