Bug 1435223 - Increase the size of idstring to avoid a warning r?baku
MozReview-Commit-ID: FFOByQdUa0I
--- a/dom/gamepad/linux/LinuxGamepad.cpp
+++ b/dom/gamepad/linux/LinuxGamepad.cpp
@@ -36,17 +36,17 @@ static const char kJoystickPath[] = "/de
//TODO: should find a USB identifier for each device so we can
// provide something that persists across connect/disconnect cycles.
typedef struct {
int index;
guint source_id;
int numAxes;
int numButtons;
- char idstring[128];
+ char idstring[256];
char devpath[PATH_MAX];
} Gamepad;
class LinuxGamepadService {
public:
LinuxGamepadService() : mMonitor(nullptr),
mMonitorSourceID(0) {
}