浏览代码

corrected format strings for out-of-memory messages

Johan De Taeye 4 年之前
父节点
当前提交
ef0afbcf3d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/civetweb.c

+ 2 - 2
src/civetweb.c

@@ -12960,7 +12960,7 @@ read_websocket(struct mg_connection *conn,
 									mg_cry_internal(
 									    conn,
 									    "Out of memory: Cannot allocate "
-									    "inflate buffer of %i bytes",
+									    "inflate buffer of %zu bytes",
 									    inflate_buf_size);
 									exit_by_callback = 1;
 									break;
@@ -13148,7 +13148,7 @@ mg_websocket_write_exec(struct mg_connection *conn,
 		if (deflated == NULL) {
 			mg_cry_internal(
 			    conn,
-			    "Out of memory: Cannot allocate deflate buffer of %i bytes",
+			    "Out of memory: Cannot allocate deflate buffer of %zu bytes",
 			    deflated_size);
 			mg_unlock_connection(conn);
 			return -1;