From b3f81cfb9450f734bacda0383e35b1ccbda87e0a Mon Sep 17 00:00:00 2001 From: "Gergely Polonkai (W00d5t0ck)" Date: Thu, 29 Mar 2012 18:08:52 +0200 Subject: [PATCH] Removed white-space from the possible characters in the randomly generated strings. Signed-off-by: Gergely Polonkai (W00d5t0ck) --- wmud/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wmud/main.c b/wmud/main.c index d45bfdc..422b539 100644 --- a/wmud/main.c +++ b/wmud/main.c @@ -69,8 +69,9 @@ wmud_random_string(gint len) { gchar c = 0; /* Include only printable characters, but exclude $ because of - * salt generation */ - while (!g_ascii_isprint(c) || (c == '$')) + * salt generation, and space to avoid misunderstanding in the + * random generated passwords */ + while (!g_ascii_isprint(c) || (c == '$') || (c == ' ') || (c == '\t')) c = random_number(1, 127); ret[i] = c;