mirror of https://github.com/OpenTTD/OpenTTD
(svn r5993) -Fix r5974: a cause-no-warning commit caused a warning ;) (glx)
parent
f73b17323e
commit
5e4667624e
|
@ -680,7 +680,7 @@ IConsoleAlias *IConsoleAliasGet(const char *name)
|
||||||
/** copy in an argument into the aliasstream */
|
/** copy in an argument into the aliasstream */
|
||||||
static inline int IConsoleCopyInParams(char *dst, const char *src, uint bufpos)
|
static inline int IConsoleCopyInParams(char *dst, const char *src, uint bufpos)
|
||||||
{
|
{
|
||||||
int len = min(ICON_MAX_STREAMSIZE - bufpos, (int)strlen(src));
|
int len = min(ICON_MAX_STREAMSIZE - bufpos, (uint)strlen(src));
|
||||||
strncpy(dst, src, len);
|
strncpy(dst, src, len);
|
||||||
|
|
||||||
return len;
|
return len;
|
||||||
|
|
Loading…
Reference in New Issue