Changeset 408
- Timestamp:
- 07/18/06 17:58:39 (4 years ago)
- Files:
-
- aube/trunk/src/about_dialog.c (modified) (1 diff)
- aube/trunk/src/aube.c (modified) (5 diffs)
- aube/trunk/src/inputoption.c (modified) (2 diffs)
- aube/trunk/src/master.c (modified) (1 diff)
- aube/trunk/src/modulemenu.c (modified) (2 diffs)
- aube/trunk/src/modules/atonal.c (modified) (2 diffs)
- aube/trunk/src/modules/delay.c (modified) (2 diffs)
- aube/trunk/src/modules/drummachine.c (modified) (2 diffs)
- aube/trunk/src/modules/filter_reslp.c (modified) (2 diffs)
- aube/trunk/src/modules/general_mixer.c (modified) (2 diffs)
- aube/trunk/src/modules/general_mixer_if.c (modified) (2 diffs)
- aube/trunk/src/modules/klavier.c (modified) (2 diffs)
- aube/trunk/src/modules/line.c (modified) (10 diffs)
- aube/trunk/src/modules/minimaube.c (modified) (2 diffs)
- aube/trunk/src/modules/minimaube_if.c (modified) (3 diffs)
- aube/trunk/src/modules/minitracker.c (modified) (2 diffs)
- aube/trunk/src/modules/minitracker_if.c (modified) (1 diff)
- aube/trunk/src/modules/panner.c (modified) (2 diffs)
- aube/trunk/src/modules/panner4.c (modified) (2 diffs)
- aube/trunk/src/modules/sample_recorder.c (modified) (2 diffs)
- aube/trunk/src/modules/syre.c (modified) (2 diffs)
- aube/trunk/src/modules/syre_if.c (modified) (1 diff)
- aube/trunk/src/modules/whitenoise.c (modified) (2 diffs)
- aube/trunk/src/modules/xfader.c (modified) (2 diffs)
- aube/trunk/src/none.c (modified) (1 diff)
- aube/trunk/src/slider.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
aube/trunk/src/about_dialog.c
r397 r408 124 124 return TRUE; 125 125 126 s printf(buf, "%s/aube_logo.ppm", DATADIR);126 snprintf(buf, sizeof (buf), "%s/aube_logo.ppm", DATADIR); 127 127 128 128 fp = fopen(buf, "rb"); aube/trunk/src/aube.c
r372 r408 177 177 out->parms.ch_type = ch_type; 178 178 out->module = m; 179 s printf(out->u_label, "%s", label);179 snprintf(out->u_label, sizeof (out->u_label), "%s", label); 180 180 out->data = data; 181 181 } … … 288 288 aube_add_module(module * module) 289 289 { 290 char temp [sizeof (module->u_label)] ; 290 291 aube_daddy->modules[aube_daddy->nr_modules] = module; 291 292 aube_daddy->nr_modules++; … … 295 296 /*aube_daddy->types[module->type].instances++;*/ 296 297 module->class->instances++; 297 sprintf(module->u_label, "%s-%d", module->u_label, 298 module->class->instances); 298 299 /* If we're using snprintf, we need to store the existing string first. */ 300 snprintf(temp, sizeof (temp), "%s", module->u_label); 301 sprintf(module->u_label, "%s-%d", temp, module->class->instances); 299 302 /* 300 303 aube_daddy->types[module->type].instances); … … 391 394 } 392 395 } 393 s printf((char *) a->types[i].type_label, "%s", typename);396 snprintf((char *) a->types[i].type_label, sizeof (a->types[i].type_label), "%s", typename); 394 397 a->types[i].type = i; 395 398 a->types[i].instances = 0; … … 410 413 411 414 gtk_init(&argc, &argv); 412 s printf(buf, "%s/gtkrc", DATADIR);415 snprintf(buf, sizeof (buf), "%s/gtkrc", DATADIR); 413 416 gtk_rc_parse(buf); 414 417 aube/trunk/src/inputoption.c
r397 r408 173 173 for (i = -1; i < (int) (aube_daddy->nr_samples); i++) { 174 174 if (i == -1) { 175 s printf(buf, "None");175 snprintf(buf, sizeof (buf), "None"); 176 176 INPUTOPTION(data)->ip[k].ch = NULL; 177 177 } else { 178 s printf(buf, "%s", aube_daddy->samples[i]->u_label);178 snprintf(buf, sizeof (buf), "%s", aube_daddy->samples[i]->u_label); 179 179 INPUTOPTION(data)->ip[k].ch = aube_daddy->samples[i]; 180 180 } … … 207 207 208 208 if (i == 0) 209 s printf(buf, "None");209 snprintf(buf, sizeof (buf), "None"); 210 210 else if (aube_daddy->modules[i]->nr_outputs == 1) 211 s printf(buf, "%s", aube_daddy->modules[i]->u_label);211 snprintf(buf, sizeof (buf), "%s", aube_daddy->modules[i]->u_label); 212 212 else 213 s printf(buf, "%s:%s", aube_daddy->modules[i]->u_label,213 snprintf(buf, sizeof (buf), "%s:%s", aube_daddy->modules[i]->u_label, 214 214 INPUTOPTION(data)->ip[k].ch->u_label); 215 215 aube/trunk/src/master.c
r407 r408 189 189 title[2] = buf2; 190 190 for (i = 0; i < aube_daddy->nr_samples; i++) { 191 s printf(title[0], "%02d", i);191 snprintf(title[0], sizeof(title[0]), "%02d", i); 192 192 title[1] = aube_daddy->samples[i]->u_label; 193 s printf(title[2], "%d",193 snprintf(title[2], sizeof(title[2]), "%d", 194 194 aube_daddy->samples[i]->parms.d.audio_sample_data.s_length); 195 195 gtk_clist_append(clist, (gchar **) & title); aube/trunk/src/modulemenu.c
r397 r408 85 85 UNITMENU(modulemenu)->up[k].selected_module = u; 86 86 87 s printf(buf, "%s", u->u_label);87 snprintf(buf, sizeof (buf), "%s", u->u_label); 88 88 89 89 menuitem = gtk_menu_item_new_with_label(buf); … … 96 96 } 97 97 if (k == 0) { 98 s printf(buf, "None");98 snprintf(buf, sizeof (buf), "None"); 99 99 100 100 menuitem = gtk_menu_item_new_with_label(buf); aube/trunk/src/modules/atonal.c
r372 r408 55 55 56 56 aube_module_clear_outputs((module *)s); 57 s printf(s->module.u_label, "atonal");57 snprintf(s->module.u_label, sizeof (s->module.u_label), "atonal"); 58 58 59 59 s->module.do_tick = (void *)atonal_calc_note; … … 84 84 85 85 aube_module_clear_outputs((module *)s); 86 s printf(s->module.u_label, "atonal");86 snprintf(s->module.u_label, sizeof (s->module.u_label), "atonal"); 87 87 88 88 s->module.do_tick = (void *)atonal_calc_note; aube/trunk/src/modules/delay.c
r372 r408 51 51 52 52 aube_module_clear_outputs((module *) dl); 53 s printf(dl->module.u_label, "delay");53 snprintf(dl->module.u_label, sizeof (dl->module.u_label), "delay"); 54 54 55 55 dl->module.do_tick = (void *) delay_calc_note; … … 81 81 82 82 aube_module_clear_outputs((module *) dl); 83 s printf(dl->module.u_label, "delay");83 snprintf(dl->module.u_label, sizeof (dl->module.u_label), "delay"); 84 84 85 85 dl->module.do_tick = (void *) delay_calc_note; aube/trunk/src/modules/drummachine.c
r372 r408 60 60 s->module.outputs[i]->data = (seq_channel *) (&(s->seq_ch[i])); 61 61 snprintf(buf, 4, "%d", i); 62 s printf(s->module.outputs[i]->u_label, buf);62 snprintf(s->module.outputs[i]->u_label, sizeof (s->module.outputs[i]->u_label), buf); 63 63 s->module.outputs[i]->module = (module *) s; 64 64 } 65 65 aube_module_clear_outputs((module *) s); 66 s printf(s->module.u_label, "drummachine");66 snprintf(s->module.u_label, sizeof (s->module.u_label), "drummachine"); 67 67 68 68 s->module.do_tick = (void *) drummachine_calc_note; … … 98 98 s->module.outputs[i]->data = (seq_channel *) (&(s->seq_ch[i])); 99 99 s->module.outputs[i]->module = (module *) s; 100 snprintf(buf, 4, "%d", i);101 s printf(s->module.outputs[i]->u_label, buf);100 snprintf(buf, sizeof (buf), "%d", i); 101 snprintf(s->module.outputs[i]->u_label, sizeof(s->module.outputs[i]->u_label), buf); 102 102 } 103 103 aube_module_clear_outputs((module *) s); 104 s printf(s->module.u_label, "drummachine");104 snprintf(s->module.u_label, sizeof (s->module.u_label), "drummachine"); 105 105 106 106 s->module.do_tick = (void *) drummachine_calc_note; aube/trunk/src/modules/filter_reslp.c
r372 r408 65 65 s->module.outputs[0]->data = (bit16 *) (&(s->tick_buffer)); 66 66 aube_module_clear_outputs((module *) s); 67 s printf(s->module.u_label, "reslp");68 s printf(s->module.outputs[0]->u_label, "out");67 snprintf(s->module.u_label, sizeof (s->module.u_label), "reslp"); 68 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "out"); 69 69 s->module.outputs[0]->module = (module *) s; 70 70 … … 116 116 s->module.outputs[0]->data = (bit16 *) (&(s->tick_buffer)); 117 117 aube_module_clear_outputs((module *) s); 118 s printf(s->module.u_label, "reslp");119 s printf(s->module.outputs[0]->u_label, "out");118 snprintf(s->module.u_label, sizeof (s->module.u_label), "reslp"); 119 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "out"); 120 120 s->module.outputs[0]->module = (module *) s; 121 121 aube/trunk/src/modules/general_mixer.c
r372 r408 58 58 aube_module_clear_outputs((module *) xf); 59 59 60 s printf(xf->module.u_label, "mixer"); /*60 snprintf(xf->module.u_label, sizeof (xf->module.u_label), "mixer"); /* 61 61 not general_mixer for conciseness 62 62 */ 63 s printf(xf->module.outputs[0]->u_label, "out");63 snprintf(xf->module.outputs[0]->u_label, sizeof (xf->module.outputs[0]->u_label), "out"); 64 64 xf->module.outputs[0]->module = (module *) xf; 65 65 … … 106 106 aube_module_clear_outputs((module *) xf); 107 107 108 s printf(xf->module.u_label, "mixer");109 s printf(xf->module.outputs[0]->u_label, "out");108 snprintf(xf->module.u_label, sizeof (xf->module.u_label), "mixer"); 109 snprintf(xf->module.outputs[0]->u_label, sizeof (xf->module.outputs[0]->u_label), "out"); 110 110 xf->module.outputs[0]->module = (module *) xf; 111 111 aube/trunk/src/modules/general_mixer_if.c
r407 r408 247 247 gtk_widget_show(vbox); 248 248 249 s printf(buf, "%d:", i);249 snprintf(buf, sizeof (buf), "%d:", i); 250 250 button = inputoption_new(buf, 251 251 (module *) GENERAL_MIXER_IF(general_mixer_if)->data, i); … … 254 254 gtk_widget_show(button); 255 255 256 s printf(buf, "%d", i);256 snprintf(buf, sizeof (buf), "%d", i); 257 257 slider = slider_int_new(buf, &(general_mixer_if->data->vol[i]), 0, 64, 1); 258 258 gtk_box_pack_start(GTK_BOX(vbox), slider, TRUE, TRUE, 0); aube/trunk/src/modules/klavier.c
r372 r408 52 52 s->module.outputs[0]->data = (seq_channel *) (&(s->seq_ch)); 53 53 aube_module_clear_outputs((module *) s); 54 s printf(s->module.u_label, "klavier");55 s printf(s->module.outputs[0]->u_label, "seq");54 snprintf(s->module.u_label, sizeof (s->module.u_label), "klavier"); 55 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "seq"); 56 56 s->module.outputs[0]->module = (module *) s; 57 57 … … 81 81 s->module.outputs[0]->data = (seq_channel *) (&(s->seq_ch)); 82 82 aube_module_clear_outputs((module *) s); 83 s printf(s->module.u_label, "klavier");84 s printf(s->module.outputs[0]->u_label, "seq");83 snprintf(s->module.u_label, sizeof (s->module.u_label), "klavier"); 84 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "seq"); 85 85 s->module.outputs[0]->module = (module *) s; 86 86 aube/trunk/src/modules/line.c
r372 r408 132 132 oss_o->output_module.inputs[0]->channel = NULL; 133 133 oss_o->output_module.nr_outputs = 0; 134 s printf(oss_o->output_module.u_label, "Line-Out");134 snprintf(oss_o->output_module.u_label, sizeof (oss_o->output_module.u_label), "Line-Out"); 135 135 aube_add_module(&oss_o->output_module); 136 136 … … 174 174 oss_i->input_module.outputs[0]->data = (bit16 *) (&oss_i->tick_buffer); 175 175 aube_module_clear_outputs(&oss_i->input_module); 176 s printf(oss_i->input_module.u_label, "Line-In");177 s printf(oss_i->input_module.outputs[0]->u_label, "line");176 snprintf(oss_i->input_module.u_label, sizeof (oss_i->input_module.u_label), "Line-In"); 177 snprintf(oss_i->input_module.outputs[0]->u_label, sizeof (oss_i->input_module.outputs[0]->u_label), "line"); 178 178 oss_i->input_module.outputs[0]->module = &oss_i->input_module; 179 179 aube_add_module(&oss_i->input_module); … … 234 234 #endif 235 235 236 s printf(buf, "OSS: Error writing to %s (%d)",236 snprintf(buf, sizeof (buf), "OSS: Error writing to %s (%d)", 237 237 oss_p->dev->devicename, errno); 238 238 perror(buf); … … 259 259 } 260 260 if ((n = write(oss_p->dev->file, b, tick)) == -1) { 261 s printf(buf, "OSS: Error writing to %s", oss_p->dev->devicename);261 snprintf(buf, sizeof (buf), "OSS: Error writing to %s", oss_p->dev->devicename); 262 262 perror(buf); 263 263 #ifdef DEBUG … … 352 352 353 353 if ((oss_d->file = open(oss_d->devicename, O_WRONLY, 0)) == -1) { 354 s printf(buf, "OSS: Unable to open %s for writing", oss_d->devicename);354 snprintf(buf, sizeof (buf), "OSS: Unable to open %s for writing", oss_d->devicename); 355 355 perror(buf); 356 356 MODULE_OFF_safe(oss_d->writer); … … 360 360 361 361 #ifdef DEBUG 362 s printf(buf, "OSS: opened %s for writing, fd %d",362 snprintf(buf, sizeof (buf), "OSS: opened %s for writing, fd %d", 363 363 oss_d->devicename, oss_d->file); 364 364 perror(buf); … … 371 371 372 372 if ((oss_d->file = open(oss_d->devicename, O_RDONLY | O_NDELAY, 0)) == -1) { 373 s printf(buf, "OSS: Unable to open %s for reading", oss_d->devicename);373 snprintf(buf, sizeof (buf), "OSS: Unable to open %s for reading", oss_d->devicename); 374 374 perror(buf); 375 375 MODULE_OFF_safe(oss_d->writer); … … 378 378 } else { 379 379 #ifdef DEBUG 380 s printf(buf, "OSS: opened %s for reading, fd %d",380 snprintf(buf, sizeof (buf), "OSS: opened %s for reading, fd %d", 381 381 oss_d->devicename, oss_d->file); 382 382 perror(buf); … … 389 389 390 390 if ((oss_d->file = open(oss_d->devicename, O_RDWR | O_NDELAY, 0)) == -1) { 391 s printf(buf, "OSS: Unable to open %s for duplex", oss_d->devicename);391 snprintf(buf, sizeof (buf), "OSS: Unable to open %s for duplex", oss_d->devicename); 392 392 perror(buf); 393 393 MODULE_OFF_safe(oss_d->writer); … … 396 396 } else { 397 397 #ifdef DEBUG 398 s printf(buf, "OSS: opened %s for duplex, fd %d",398 snprintf(buf, sizeof (buf), "OSS: opened %s for duplex, fd %d", 399 399 oss_d->devicename, oss_d->file); 400 400 perror(buf); aube/trunk/src/modules/minimaube.c
r372 r408 57 57 s->module.outputs[i]->parms.ch_type = CH_TYPE_AUDIO_STREAM; 58 58 s->module.outputs[i]->data = (bit16 *) (&(s->tick_buffer[i])); 59 s printf(s->module.outputs[i]->u_label, "%d", i);59 snprintf(s->module.outputs[i]->u_label, sizeof (s->module.outputs[i]->u_label), "%d", i); 60 60 s->module.outputs[i]->module = (module *) s; 61 61 } 62 62 aube_module_clear_outputs((module *) s); 63 s printf(s->module.u_label, "s-player");63 snprintf(s->module.u_label, sizeof (s->module.u_label), "s-player"); 64 64 65 65 s->module.do_tick = (void *) minimaube_calc_note; … … 100 100 101 101 aube_module_clear_outputs((module *) s); 102 s printf(s->module.u_label, "minimaube");103 s printf(s->module.outputs[0]->u_label, "out");102 snprintf(s->module.u_label, sizeof (s->module.u_label), "minimaube"); 103 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "out"); 104 104 s->module.outputs[0]->module = (module *) s; 105 105 aube/trunk/src/modules/minimaube_if.c
r407 r408 242 242 gtk_widget_show(hbox); 243 243 244 s printf(buf, "%d:", i);244 snprintf(buf, sizeof (buf), "%d:", i); 245 245 widget = gtk_label_new(buf); 246 246 gtk_box_pack_start(GTK_BOX(hbox), widget, FALSE, TRUE, 1); … … 271 271 gtk_widget_show(vbox); 272 272 273 s printf(buf, "%d:", i);273 snprintf(buf, sizeof (buf), "%d:", i); 274 274 button = inputoption_new(buf, 275 275 (module *) MINIMAUBE_IF(minimaube_if)->data, i); … … 278 278 gtk_widget_show(button); 279 279 280 s printf(buf, "%d", i);280 snprintf(buf, sizeof (buf), "%d", i); 281 281 slider = slider_int_new(buf, &(minimaube_if->data->vol[i]), 0, 64, 1); 282 282 gtk_box_pack_start(GTK_BOX(vbox), slider, TRUE, FALSE, 0); aube/trunk/src/modules/minitracker.c
r372 r408 56 56 s->module.outputs[0]->data = (seq_channel *) (&(s->seq_ch)); 57 57 aube_module_clear_outputs((module *) s); 58 s printf(s->module.u_label, "minitracker");59 s printf(s->module.outputs[0]->u_label, "seq");58 snprintf(s->module.u_label, sizeof (s->module.u_label), "minitracker"); 59 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "seq"); 60 60 s->module.outputs[0]->module = (module *) s; 61 61 … … 93 93 s->module.outputs[0]->data = (seq_channel *) (&(s->seq_ch)); 94 94 aube_module_clear_outputs((module *) s); 95 s printf(s->module.u_label, "minitracker");96 s printf(s->module.outputs[0]->u_label, "seq");95 snprintf(s->module.u_label, sizeof (s->module.u_label), "minitracker"); 96 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "seq"); 97 97 s->module.outputs[0]->module = (module *) s; 98 98 aube/trunk/src/modules/minitracker_if.c
r407 r408 345 345 title[3] = buf3; 346 346 for (i = 0; i < SEQ_LENGTH; i++) { 347 s printf(title[0], "%02d", i);348 /* s printf(title[1], "%d", tracker->data->sequence[i].note);*/349 s printf (title[1], "%s", note_names[tracker->data->sequence[i].note]);350 s printf(title[2], "%02d", 0);351 s printf(title[3], "%02d", 0);347 snprintf(title[0], sizeof (title[0]), "%02d", i); 348 /* snprintf(title[1], sizeof (title[1]), "%d", tracker->data->sequence[i].note);*/ 349 snprintf(title[1], sizeof (title[1]), "%s", note_names[tracker->data->sequence[i].note]); 350 snprintf(title[2], sizeof (title[2]), "%02d", 0); 351 snprintf(title[3], sizeof (title[3]), "%02d", 0); 352 352 353 353 gtk_clist_append(GTK_CLIST(tracker->tl), (gchar **) & title); aube/trunk/src/modules/panner.c
r372 r408 52 52 53 53 aube_module_clear_outputs((module *) pn); 54 s printf(pn->module.u_label, "panner");55 s printf(pn->module.outputs[0]->u_label, "out");54 snprintf(pn->module.u_label, sizeof (pn->module.u_label), "panner"); 55 snprintf(pn->module.outputs[0]->u_label, sizeof (pn->module.outputs[0]->u_label), "out"); 56 56 pn->module.outputs[0]->module = (module *) pn; 57 57 … … 84 84 85 85 aube_module_clear_outputs((module *) pn); 86 s printf(pn->module.u_label, "panner");87 s printf(pn->module.outputs[0]->u_label, "out");86 snprintf(pn->module.u_label, sizeof (pn->module.u_label), "panner"); 87 snprintf(pn->module.outputs[0]->u_label, sizeof (pn->module.outputs[0]->u_label), "out"); 88 88 pn->module.outputs[0]->module = (module *) pn; 89 89 aube/trunk/src/modules/panner4.c
r372 r408 55 55 56 56 aube_module_clear_outputs((module *) pn); 57 s printf(pn->module.u_label, "panner4");58 s printf(pn->module.outputs[0]->u_label, "fwd");57 snprintf(pn->module.u_label, sizeof (pn->module.u_label), "panner4"); 58 snprintf(pn->module.outputs[0]->u_label, sizeof (pn->module.outputs[0]->u_label), "fwd"); 59 59 pn->module.outputs[0]->module = (module *) pn; 60 s printf(pn->module.outputs[1]->u_label, "rear");60 snprintf(pn->module.outputs[1]->u_label, sizeof (pn->module.outputs[1]->u_label), "rear"); 61 61 pn->module.outputs[1]->module = (module *) pn; 62 62 … … 93 93 94 94 aube_module_clear_outputs((module *) pn); 95 s printf(pn->module.u_label, "panner4");96 s printf(pn->module.outputs[0]->u_label, "fwd");95 snprintf(pn->module.u_label, sizeof (pn->module.u_label), "panner4"); 96 snprintf(pn->module.outputs[0]->u_label, sizeof (pn->module.outputs[0]->u_label), "fwd"); 97 97 pn->module.outputs[0]->module = (module *) pn; 98 s printf(pn->module.outputs[1]->u_label, "rear");98 snprintf(pn->module.outputs[1]->u_label, sizeof (pn->module.outputs[1]->u_label), "rear"); 99 99 pn->module.outputs[1]->module = (module *) pn; 100 100 aube/trunk/src/modules/sample_recorder.c
r372 r408 58 58 59 59 aube_module_clear_outputs((module *) sr); 60 s printf(sr->module.u_label, "s-recorder");61 s printf(sr->module.outputs[0]->u_label, "out");60 snprintf(sr->module.u_label, sizeof (sr->module.u_label), "s-recorder"); 61 snprintf(sr->module.outputs[0]->u_label, sizeof (sr->module.outputs[0]->u_label), "out"); 62 62 sr->module.outputs[0]->module = (module *) sr; 63 63 … … 95 95 96 96 aube_module_clear_outputs((module *) sr); 97 s printf(sr->module.u_label, "s_rec");98 s printf(sr->module.outputs[0]->u_label, "out");97 snprintf(sr->module.u_label, sizeof (sr->module.u_label), "s_rec"); 98 snprintf(sr->module.outputs[0]->u_label, sizeof (sr->module.outputs[0]->u_label), "out"); 99 99 sr->module.outputs[0]->module = (module *) sr; 100 100 aube/trunk/src/modules/syre.c
r372 r408 76 76 s->module.outputs[0]->data = (bit16 *) (&(s->tick_buffer)); 77 77 aube_module_clear_outputs((module *) s); 78 s printf(s->module.u_label, "syre");79 s printf(s->module.outputs[0]->u_label, "out");78 snprintf(s->module.u_label, sizeof (s->module.u_label), "syre"); 79 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "out"); 80 80 s->module.outputs[0]->module = (module *) s; 81 81 … … 133 133 s->module.outputs[0]->data = (bit16 *) (&(s->tick_buffer)); 134 134 aube_module_clear_outputs((module *) s); 135 s printf(s->module.u_label, "syre");136 s printf(s->module.outputs[0]->u_label, "out");135 snprintf(s->module.u_label, sizeof (s->module.u_label), "syre"); 136 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "out"); 137 137 s->module.outputs[0]->module = (module *) s; 138 138 aube/trunk/src/modules/syre_if.c
r407 r408 353 353 354 354 for (i = 0; i < NUM_HARMONICS; i++) { 355 s printf(nc, "%d", i);355 snprintf(nc, sizeof (nc), "%d", i); 356 356 syre_if->sliders[i] = 357 357 slider_int_new(nc, &(syre_if->data->overtones[i].vol), 0, 32, 1); aube/trunk/src/modules/whitenoise.c
r372 r408 53 53 */ 54 54 aube_module_clear_outputs((module *) wn); 55 s printf(wn->module.u_label, "w-noise");56 s printf(wn->module.outputs[0]->u_label, "out");55 snprintf(wn->module.u_label, sizeof (wn->module.u_label), "w-noise"); 56 snprintf(wn->module.outputs[0]->u_label, sizeof (wn->module.outputs[0]->u_label), "out"); 57 57 wn->module.outputs[0]->module = (module *) wn; 58 58 … … 82 82 83 83 aube_module_clear_outputs((module *) wn); 84 s printf(wn->module.u_label, "w-noise");85 s printf(wn->module.outputs[0]->u_label, "out");84 snprintf(wn->module.u_label, sizeof (wn->module.u_label), "w-noise"); 85 snprintf(wn->module.outputs[0]->u_label, sizeof (wn->module.outputs[0]->u_label), "out"); 86 86 wn->module.outputs[0]->module = (module *) wn; 87 87 aube/trunk/src/modules/xfader.c
r372 r408 56 56 */ 57 57 aube_module_clear_outputs((module *) xf); 58 s printf(xf->module.u_label, "xfader");59 s printf(xf->module.outputs[0]->u_label, "out");58 snprintf(xf->module.u_label, sizeof (xf->module.u_label), "xfader"); 59 snprintf(xf->module.outputs[0]->u_label, sizeof (xf->module.outputs[0]->u_label), "out"); 60 60 xf->module.outputs[0]->module = (module *) xf; 61 61 … … 90 90 xf->module.outputs[0]->data = (bit16 *) (&(xf->tick_buffer)); 91 91 aube_module_clear_outputs((module *) xf); 92 s printf(xf->module.u_label, "xfader");93 s printf(xf->module.outputs[0]->u_label, "out");92 snprintf(xf->module.u_label, sizeof (xf->module.u_label), "xfader"); 93 snprintf(xf->module.outputs[0]->u_label, sizeof (xf->module.outputs[0]->u_label), "out"); 94 94 xf->module.outputs[0]->module = (module *) xf; 95 95 aube/trunk/src/none.c
r372 r408 48 48 aube_module_clear_outputs((module *) nn); 49 49 50 s printf(nn->module.u_label, "None");51 s printf(nn->module.outputs[0]->u_label, "out");50 snprintf(nn->module.u_label, sizeof (nn->module.u_label), "None"); 51 snprintf(nn->module.outputs[0]->u_label, sizeof (nn->module.outputs[0]->u_label), "out"); 52 52 nn->module.outputs[0]->module = (module *) nn; 53 s printf(nn->module.outputs[1]->u_label, "seq");53 snprintf(nn->module.outputs[1]->u_label, sizeof (nn->module.outputs[1]->u_label), "seq"); 54 54 nn->module.outputs[1]->module = (module *) nn; 55 55 aube/trunk/src/slider.c
r407 r408 13 13 14 14 guint 15 slider_get_type( void)15 slider_get_type() 16 16 { 17 17 static guint b_type = 0; … … 71 71 slider->data.iptr = data; 72 72 73 s printf (slider->value_str, "%d", *data);73 snprintf (slider->value_str, sizeof (slider->value_str), "%d", *data); 74 74 slider->value_label = gtk_label_new (slider->value_str); 75 75 gtk_box_pack_start (GTK_BOX (slider), slider->value_label, FALSE, TRUE, 0);
