Skip to content

Commit

Permalink
Small fixes to chain.data and updated patches
Browse files Browse the repository at this point in the history
  • Loading branch information
eflynch committed Jan 6, 2016
1 parent d69af4e commit 00b2eab
Show file tree
Hide file tree
Showing 7 changed files with 4,195 additions and 8 deletions.
6 changes: 3 additions & 3 deletions chain.data/chain.data.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,13 @@ void chain_data_dowrite(t_chain_data *x, t_symbol *s)

void chain_data_writefile(t_chain_data *x, char *filename, short path)
{
long message_size = (x->s_num_samples * (44)) + (3 * 20);
long message_size = (x->s_num_samples * (44)) + 256;
char buf[message_size];

// Write Header
char header[128];
char header[256];
sprintf(header, "%s %ld %ld", x->s_metric_name->s_name, x->s_start, x->s_end);
strncat(buf, header, 128);
strncat(buf, header, 256);

// Write Values
for (long i=0; i < x->s_num_samples; i++){
Expand Down
Loading

0 comments on commit 00b2eab

Please sign in to comment.