X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Foutput.c;h=3f1dd904b4746131a395c6d34b14e87b062463f2;hb=baf657198fcf0cabe289246dc07a82da67c86f5b;hp=243e7cd3f2805db1bd7c9d978540d778bc79a031;hpb=458d169f64134f4e0a9d9b72398666a01761fcf8;p=pspp-builds.git diff --git a/src/output/output.c b/src/output/output.c index 243e7cd3..3f1dd904 100644 --- a/src/output/output.c +++ b/src/output/output.c @@ -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':