FreeBSD Bugzilla – Attachment 22182 Details for
Bug 38560
PATCH: audio/gmixer uses uninitialized pointers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch-ac
patch-ac (text/plain), 1023 bytes, created by
Juha Ylitalo
on 2002-05-26 06:40:01 UTC
(
hide
)
Description:
patch-ac
Filename:
MIME Type:
Creator:
Juha Ylitalo
Created:
2002-05-26 06:40:01 UTC
Size:
1023 bytes
patch
obsolete
>--- gmixer.c 2002/05/26 05:09:08 1.1 >+++ gmixer.c 2002/05/26 05:21:05 >@@ -378,6 +378,27 @@ > exit(0); > } > >+void fill_volctrls () >+{ >+ int i; >+ char str[3]; >+ >+ /* if you raise upper limit beyond 100, you have to make str longer. */ >+ for (i = 17; i < SOUND_MIXER_NRDEVICES && i < 100 ; i++ ) >+ { >+ snprintf (str, 3, "%2d", i); >+ volctrls[i].mixer_id = (gpointer) str; >+ volctrls[i].vol_widget = NULL; >+ volctrls[i].right_widget = NULL; >+ volctrls[i].enable_widget = NULL; >+ volctrls[i].rec_widget = NULL; >+ volctrls[i].stereo_widget = NULL; >+ volctrls[i].vol_left = NULL; >+ volctrls[i].vol_right = NULL; >+ volctrls[i].xpm = mix_unknown_xpm; >+ } >+} >+ > int main (int argc, char *argv[]) > { > char *homedir; >@@ -385,6 +406,7 @@ > char *default_dev = "/dev/mixer"; > int i; > g_print ("gmixer 0.98 (22.2.1999)\nCopyleft (C) 1998,1999 - Sergey Kiselev <sergey@junior.technion.ac.il>\n"); >+ fill_volctrls(); > homedir = getenv("HOME"); > snprintf (rcfile, NAME_LEN, "%s/.gmixerrc", homedir); > mixer_dev = default_dev;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 38560
: 22182