Bug 1435223 - Increase the size of idstring to avoid a warning r?baku draft
authorSylvestre Ledru <sledru@mozilla.com>
Fri, 02 Feb 2018 13:21:49 +0100
changeset 750480 c801a52181355dcadc950e38e3839c8fb5032b24
parent 750469 811281d1eb04944822b6e3a98f35e6a31f8599af
child 750492 767e84148ee47ead37a99e5fffc118e3c38c9189
child 750911 58d4b9654f69e1bd4a916043029bfb922d4c2fc9
push id97678
push userbmo:sledru@mozilla.com
push dateFri, 02 Feb 2018 12:22:07 +0000
reviewersbaku
bugs1435223
milestone60.0a1
Bug 1435223 - Increase the size of idstring to avoid a warning r?baku MozReview-Commit-ID: FFOByQdUa0I
dom/gamepad/linux/LinuxGamepad.cpp
--- 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) {
   }