summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Koegel <eric.koegel@gmail.com>2014-10-12 10:03:09 +0300
committerEric Koegel <eric.koegel@gmail.com>2014-10-12 10:04:44 +0300
commit6aa6dcecca8b75fe0eb2883364583957a2035b26 (patch)
treeca35807d53dfce1f98bb684826e2807b7fa741ac
parentd6134407405b56d33c0b8d3f1769214c71dd677e (diff)
downloadConsoleKit2-6aa6dcecca8b75fe0eb2883364583957a2035b26.tar.gz
Limit max username length to 24
64 makes really long lines using ck-history on the cli, change it down to 24. If this becomes a problem we can add an option to display more characters.
-rw-r--r--tools/ck-history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ck-history.c b/tools/ck-history.c
index 42d5498..ce0d7d5 100644
--- a/tools/ck-history.c
+++ b/tools/ck-history.c
@@ -61,7 +61,7 @@ typedef enum {
#define DEFAULT_LOG_FILENAME LOCALSTATEDIR "/log/ConsoleKit/history"
#define MAX_LINE_LEN 2048
-#define USERNAME_MAX "64"
+#define USERNAME_MAX "24"
static GList *all_events = NULL;