[Git][NTPsec/ntpsec][master] Fix GitLab issue #357: mrulist crashes

Eric S. Raymond gitlab at mg.gitlab.com
Sun Aug 13 11:20:56 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
654cb64b by Eric S. Raymond at 2017-08-13T07:19:52-04:00
Fix GitLab issue #357: mrulist crashes

- - - - -


1 changed file:

- ntpclients/ntpq


Changes:

=====================================
ntpclients/ntpq
=====================================
--- a/ntpclients/ntpq
+++ b/ntpclients/ntpq
@@ -1326,7 +1326,7 @@ usage: config_from_file <configuration filename>
                 try:
                     delta1 = time.time() - self.session.start
                     self.say(ntp.util.MRUSummary.header + "\n")
-                    self.say(("=" * ntp.util.MRUSummary.width) + "\n")
+                    self.say(("=" * len(ntp.util.MRUSummary.header)) + "\n")
                     # reversed puts most recent entries at the top if no sort=
                     # see sort comments in pylib/packet.py
                     formatter.now = span.now



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/654cb64b2f8619d948db86ecc2619c56e654f439

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/654cb64b2f8619d948db86ecc2619c56e654f439
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170813/0d9d020c/attachment.html>


More information about the vc mailing list