Changeset - r10211:c40381142643
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-10-02 00:08:45
rubidium@openttd.org
(svn r14431) -Fix (r14414): alias parameter "evaluation" would remove the last byte of the parameters.
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/console.cpp
Show inline comments
 
@@ -388,8 +388,9 @@ IConsoleAlias *IConsoleAliasGet(const ch
 
/** copy in an argument into the aliasstream */
 
static inline int IConsoleCopyInParams(char *dst, const char *src, uint bufpos)
 
{
 
	int len = min(ICON_MAX_STREAMSIZE - bufpos, (uint)strlen(src));
 
	strecpy(dst, src, dst + len - 1);
 
	/* len is the amount of bytes to add excluding the '\0'-termination */
 
	int len = min(ICON_MAX_STREAMSIZE - bufpos - 1, (uint)strlen(src));
 
	strecpy(dst, src, dst + len);
 

	
 
	return len;
 
}
0 comments (0 inline, 0 general)