From afdaddd392c5fe1af430e4ae3bbb708e57c9c157 Mon Sep 17 00:00:00 2001 From: michi_cc Date: Mon, 9 Apr 2012 13:08:20 +0000 Subject: (svn r24109) -Fix (r24099): Warning from not using size_t to store the return value of strlen(). --- src/debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.cpp b/src/debug.cpp index 11166dafe..e6fb61292 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -81,7 +81,7 @@ struct DebugLevel { */ char *DumpDebugFacilityNames(char *buf, char *last) { - int length = 0; + size_t length = 0; for (const DebugLevel *i = debug_level; i != endof(debug_level); ++i) { if (length == 0) { buf = strecpy(buf, "List of debug facility names:\n", last); -- cgit v1.2.3-70-g09d2