diff --git a/openbsc/contrib/dump_all_docs.py b/openbsc/contrib/dump_all_docs.py index 314f60bab..2903f80ba 100755 --- a/openbsc/contrib/dump_all_docs.py +++ b/openbsc/contrib/dump_all_docs.py @@ -26,7 +26,7 @@ def dump_doc(end, port, filename): # Now write everything until the end to the file out = open(filename, 'w') - out.write(xml[18:len(filename)*-1]) + out.write(xml[18:len(end)*-1]) out.close()