mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-18 05:01:13 +00:00
(svn r14455) [0.6] -Backport from trunk:
- Fix: Alias parameter "evaluation" would remove the last byte of the parameters (r14431)
This commit is contained in:
parent
b89e90e0c0
commit
4fc66185ff
@ -696,8 +696,9 @@ IConsoleAlias *IConsoleAliasGet(const char *name)
|
||||
/** 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user