Use constant for length of file suggested by Ioan Molnar.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21651 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -132,13 +132,13 @@ bool JoyWin::QuitRequested()
|
|||||||
/* Initialization */
|
/* Initialization */
|
||||||
status_t JoyWin::AddDevices()
|
status_t JoyWin::AddDevices()
|
||||||
{
|
{
|
||||||
char buf[256];
|
char buf[BEOS_NAME_LENGTH];
|
||||||
int devId = 0;
|
int devId = 0;
|
||||||
MessagedItem* device;
|
MessagedItem* device;
|
||||||
BMessage* message;
|
BMessage* message;
|
||||||
BString str;
|
BString str;
|
||||||
|
|
||||||
while (!fJoystick.GetDeviceName(devId, buf, 256)) {
|
while (!fJoystick.GetDeviceName(devId, buf, BEOS_NAME_LENGTH)) {
|
||||||
message = new BMessage(PORT_SELECTED);
|
message = new BMessage(PORT_SELECTED);
|
||||||
message->AddString("devname", buf);
|
message->AddString("devname", buf);
|
||||||
// NOTE: Adding the index in the list might be useful.
|
// NOTE: Adding the index in the list might be useful.
|
||||||
|
|||||||
Reference in New Issue
Block a user