yhirose преди 5 години
родител
ревизия
0db9d21eb0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      example/simplesvr.cc

+ 1 - 1
example/simplesvr.cc

@@ -46,7 +46,7 @@ string dump_multipart_files(const MultipartFormDataMap &files) {
     snprintf(buf, sizeof(buf), "content type: %s\n", file.content_type.c_str());
     s += buf;
 
-    snprintf(buf, sizeof(buf), "text length: %lu\n", file.content.size());
+    snprintf(buf, sizeof(buf), "text length: %zu\n", file.content.size());
     s += buf;
 
     s += "----------------\n";