mirror of https://github.com/OpenTTD/OpenTTD
(svn r24109) -Fix (r24099): Warning from not using size_t to store the return value of strlen().
parent
d7d89bc806
commit
afdaddd392
|
@ -81,7 +81,7 @@ struct DebugLevel {
|
||||||
*/
|
*/
|
||||||
char *DumpDebugFacilityNames(char *buf, char *last)
|
char *DumpDebugFacilityNames(char *buf, char *last)
|
||||||
{
|
{
|
||||||
int length = 0;
|
size_t length = 0;
|
||||||
for (const DebugLevel *i = debug_level; i != endof(debug_level); ++i) {
|
for (const DebugLevel *i = debug_level; i != endof(debug_level); ++i) {
|
||||||
if (length == 0) {
|
if (length == 0) {
|
||||||
buf = strecpy(buf, "List of debug facility names:\n", last);
|
buf = strecpy(buf, "List of debug facility names:\n", last);
|
||||||
|
|
Loading…
Reference in New Issue