ndof: fix Linux device detect regression

This commit is contained in:
Mike Erwin 2015-04-12 19:58:17 -04:00
parent c950b8f289
commit 55b7a8c027
Notes: blender-bot 2023-02-14 09:14:20 +01:00
Referenced by issue #44421, Set the viewport to wire while texture painting crash blender
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ GHOST_NDOFManagerX11::GHOST_NDOFManagerX11(GHOST_System& sys)
#define MAX_LINE_LENGTH 100
/* look for USB devices with Logitech or 3Dconnexion's vendor ID */
FILE *command_output = popen("lsusb | grep '046d:\|256f:'", "r");
FILE *command_output = popen("lsusb | grep '046d:\\|256f:'", "r");
if (command_output) {
char line[MAX_LINE_LENGTH] = {0};
while (fgets(line, MAX_LINE_LENGTH, command_output)) {