Add tty and listing devices that use VT100 (and xterm) line-drawing
[pspp-builds.git] / src / output / output.c
index 243e7cd3f2805db1bd7c9d978540d778bc79a031..3f1dd904b4746131a395c6d34b14e87b062463f2 100644 (file)
@@ -562,7 +562,7 @@ get_option_token (struct substring *s, const char *driver_name,
                 case '7':
                   out = c - '0';
                   while (ss_first (*s) >= '0' && ss_first (*s) <= '7')
-                    out = c * 8 + (ss_get_char (s) - '0');
+                    out = out * 8 + (ss_get_char (s) - '0');
                   break;
                 case 'x':
                 case 'X':