]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - console.c
change representation of string offsets for allocated strings and engine
[xonotic/darkplaces.git] / console.c
index dc3ca9c50156f2765cd13ac849209d1b50c90447..455b6c330acd901cf76a466ea1d2b4e747400754 100644 (file)
--- a/console.c
+++ b/console.c
@@ -2171,7 +2171,6 @@ int Nicks_CompleteCountPossible(char *line, int pos, char *s, qboolean isCon)
 {
        char name[128];
        int i, p;
-       int length;
        int match;
        int spos;
        int count = 0;
@@ -2195,7 +2194,6 @@ int Nicks_CompleteCountPossible(char *line, int pos, char *s, qboolean isCon)
                if(!name[0])
                        continue;
 
-               length = strlen(name);
                match = -1;
                spos = pos - 1; // no need for a minimum of characters :)
 
@@ -2753,7 +2751,7 @@ void Con_CompleteCommandLine (void)
        a = Cmd_CompleteAliasCountPossible(s);
        if (a)
        {
-               Con_Printf("\n%i possible aliases%s\n", a, (a > 1) ? "s: " : ":");
+               Con_Printf("\n%i possible alias%s\n", a, (a > 1) ? "es: " : ":");
                Cmd_CompleteAliasPrint(s);
        }
        n = Nicks_CompleteCountPossible(key_line, key_linepos, s, true);