]> thyrsus.com Git - mad.git/commitdiff
Correct stupid error in driver machinery.
authorEric S. Raymond <esr@thyrsus,com>
Thu, 19 Feb 2004 04:50:53 +0000 (04:50 +0000)
committerEric S. Raymond <esr@thyrsus,com>
Thu, 19 Feb 2004 04:50:53 +0000 (04:50 +0000)
mad

diff --git a/mad b/mad
index 3382f90913baef89478774c549646e0df2787d00..5585677d1a102b6bd67e1c4641a26f4c523219f4 100755 (executable)
--- a/mad
+++ b/mad
@@ -1155,7 +1155,7 @@ if __name__ == '__main__':
         sys.exit(1)
     stem = target
     if target[-2] == '.':
-        stem = target[:2]
+        stem = target[:-2]
     out = open(stem + ".c", "w")
     generate_C_code(out)
     out.close()