forked from github/server
fixed buffersize-calculation for orders.
This commit is contained in:
parent
bc2cedd34f
commit
7819848524
1 changed files with 1 additions and 2 deletions
|
@ -113,12 +113,11 @@ get_command(const order * ord, char * sbuffer, size_t bufsize)
|
||||||
str += strlcpy(str, LOC(lang, keywords[kwd]), size);
|
str += strlcpy(str, LOC(lang, keywords[kwd]), size);
|
||||||
if (text) {
|
if (text) {
|
||||||
*str++ = ' ';
|
*str++ = ' ';
|
||||||
*str = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (text) {
|
if (text) {
|
||||||
str += strlcpy(str, text, sizeof(sbuffer)-(str-sbuffer));
|
str += strlcpy(str, text, bufsize-(str-sbuffer));
|
||||||
}
|
}
|
||||||
return sbuffer;
|
return sbuffer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue