diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c index 30f83e66f17..6082cb9b342 100644 --- a/dlls/msvcrt/file.c +++ b/dlls/msvcrt/file.c @@ -2109,7 +2109,7 @@ int CDECL MSVCRT__write(int fd, const void* buf, unsigned int count) unsigned int i, j, nr_lf; char *p = NULL; const char *q; - const char *s = (const char *)buf, *buf_start = (const char *)buf; + const char *s = buf, *buf_start = buf; /* find number of \n ( without preceding \r ) */ for ( nr_lf=0,i = 0; i