diff --git a/libs/util/cmd.c b/libs/util/cmd.c index 0b2188220..ee63890f8 100644 --- a/libs/util/cmd.c +++ b/libs/util/cmd.c @@ -2067,7 +2067,7 @@ Cmd_Strlen_f (void) Cmd_Error ("strlen: invalid number of arguments.\n"); return; } - Cmd_Return (va("%i",strlen (Cmd_Argv(1)))); + Cmd_Return (va("%ld", (long) strlen (Cmd_Argv(1)))); } void