aboutsummaryrefslogtreecommitdiffstats
path: root/src/ring.c
diff options
context:
space:
mode:
authorjames <>2008-03-07 13:16:02 +0000
committerjames <>2008-03-07 13:16:02 +0000
commitbe42afab1c325fae5c3c270876a3447220adcca5 (patch)
treebc1a2e2f73defb90dec0990cb849b51dd0e50dfe /src/ring.c
parentfc0af42eb82bf94a9b1174d3ba96536238bc5fcd (diff)
downloadsympathy-be42afab1c325fae5c3c270876a3447220adcca5.tar.gz
sympathy-be42afab1c325fae5c3c270876a3447220adcca5.tar.bz2
sympathy-be42afab1c325fae5c3c270876a3447220adcca5.zip
*** empty log message ***
Diffstat (limited to 'src/ring.c')
-rw-r--r--src/ring.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ring.c b/src/ring.c
index 44b2bb9..920e1ca 100644
--- a/src/ring.c
+++ b/src/ring.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.8 2008/03/07 13:16:02 james
+ * *** empty log message ***
+ *
* Revision 1.7 2008/03/07 12:37:04 james
* *** empty log message ***
*
@@ -95,8 +98,8 @@ ring_bytes (Ring * r)
Ring *
ring_new (int n)
{
- Ring *ret = (Ring *) malloc (sizeof (Ring));
- ret->ring = (uint8_t *) malloc (n);
+ Ring *ret = (Ring *) xmalloc (sizeof (Ring));
+ ret->ring = (uint8_t *) xmalloc (n);
ret->size = n;
ret->wptr = ret->rptr = 0;