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:
parent
eb9f93f347
commit
62c65a7fb2
@ -132,13 +132,13 @@ bool JoyWin::QuitRequested()
|
||||
/* Initialization */
|
||||
status_t JoyWin::AddDevices()
|
||||
{
|
||||
char buf[256];
|
||||
char buf[BEOS_NAME_LENGTH];
|
||||
int devId = 0;
|
||||
MessagedItem* device;
|
||||
BMessage* message;
|
||||
BString str;
|
||||
|
||||
while (!fJoystick.GetDeviceName(devId, buf, 256)) {
|
||||
while (!fJoystick.GetDeviceName(devId, buf, BEOS_NAME_LENGTH)) {
|
||||
message = new BMessage(PORT_SELECTED);
|
||||
message->AddString("devname", buf);
|
||||
// NOTE: Adding the index in the list might be useful.
|
||||
|
Loading…
Reference in New Issue
Block a user