blob: 24099d980e4b0bd7810eda1d648677a36cee81fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ai,v 1.1.1.1 2000/11/21 06:01:49 hubertf Exp $
--- mixer.c.orig Tue May 30 13:30:56 2000
+++ mixer.c
@@ -70,7 +70,7 @@
if(*new==NULL){
sprintf(mesg,"Adding New Channel %s",name);
write_message(mesg,0);
- *new=malloc(sizeof(channel));
+ *new=calloc(1, sizeof(channel));
strncpy((*new)->name,name,63);
(*new)->curnt=mixer.t_list;
(*new)->volume=1.0;
|