hdspmixer: Fix buffer overflow

A one off string buffer overflow fixed by handling it properly with
string stream.

Signed-off-by: Georg Rudolph <georg.rudolph@schwaben.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Georg Rudolph 2010-05-15 09:37:34 +02:00 committed by Jaroslav Kysela
parent 0de8b19562
commit 6af3047947
2 changed files with 5 additions and 4 deletions

View file

@ -36,6 +36,7 @@
#include "HDSPMixerStripData.h"
#include "HDSPMixerMeter.h"
#include "pixmaps.h"
#include <sstream>
class HDSPMixerWindow;
class HDSPMixerSelector;
@ -52,7 +53,7 @@ class HDSPMixerIOMixer:public Fl_Group
private:
char **p_iomixer_xpm;
int channel_num, relative_num, mixer_type;
char channel_name[6];
std::stringstream channel_name;
void update_child(Fl_Widget &widget);
public:
HDSPMixerStripData *data[3][3][8]; /* data[card][mode(ss/ds/qs)][preset number] */