Commit b4e26f04 authored by Alexandre Julliard's avatar Alexandre Julliard

winetest: Fix a compiler warning with the size_t type.

parent bc5ce279
...@@ -109,7 +109,7 @@ send_file (const char *name) ...@@ -109,7 +109,7 @@ send_file (const char *name)
#define BUFLEN 8192 #define BUFLEN 8192
char buffer[BUFLEN+1]; char buffer[BUFLEN+1];
DWORD bytes_read, filesize; DWORD bytes_read, filesize;
size_t total; size_t total, count;
char *str; char *str;
int ret; int ret;
...@@ -208,9 +208,9 @@ send_file (const char *name) ...@@ -208,9 +208,9 @@ send_file (const char *name)
return 1; return 1;
} }
str = strmake (&bytes_read, "Received %s (%d bytes).\n", str = strmake (&count, "Received %s (%d bytes).\n",
name, filesize); name, filesize);
ret = memcmp (str, buffer + total - bytes_read, bytes_read); ret = memcmp (str, buffer + total - count, count);
free (str); free (str);
if (ret) { if (ret) {
buffer[total] = 0; buffer[total] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment