ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/src/table.C
(Generate patch)

Comparing ermyth/src/table.C (file contents):
Revision 1.4 by pippijn, Tue Aug 28 17:08:12 2007 UTC vs.
Revision 1.5 by pippijn, Thu Aug 30 19:56:26 2007 UTC

6 * later on. 6 * later on.
7 * 7 *
8 * Copyright © 2005-2007 Atheme Project (http://www.atheme.org) 8 * Copyright © 2005-2007 Atheme Project (http://www.atheme.org)
9 */ 9 */
10 10
11static char const rcsid[] = "$Id: table.C,v 1.4 2007/08/28 17:08:12 pippijn Exp $"; 11static char const rcsid[] = "$Id: table.C,v 1.5 2007/08/30 19:56:26 pippijn Exp $";
12 12
13#include "atheme.h" 13#include "atheme.h"
14 14
15static void 15static void
16table_destroy (void *obj) 16table_destroy (void *obj)
199 { 199 {
200 table_cell_t *c = (table_cell_t *) n->data; 200 table_cell_t *c = (table_cell_t *) n->data;
201 bufsz += c->width + 1; 201 bufsz += c->width + 1;
202 } 202 }
203 203
204 buf = alloc<char> (bufsz); 204 buf = salloc<char> (bufsz);
205 *buf = '\0'; 205 *buf = '\0';
206 206
207 /* start outputting the header. */ 207 /* start outputting the header. */
208 callback (asobject (t)->name, data); 208 callback (asobject (t)->name, data);
209 LIST_FOREACH (n, f->cells.head) 209 LIST_FOREACH (n, f->cells.head)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines