Commit c26f1629 authored by rswindell's avatar rswindell
Browse files

Fixed typo and warning in MSVC build of safe_snprintf().

parent 76eee6fd
......@@ -78,9 +78,9 @@ int DLLCALL safe_snprintf(char *dst, size_t size, const char *fmt, ...)
dst[size-1]=0;
#ifdef _MSC_VER
if(numchars==-1)
nuchars=strlen(dst);
numchars=strlen(dst);
#endif
if(numchars>=size && numchars>0)
if(numchars>=(int)size && numchars>0)
numchars=size-1;
return(numchars);
}
......
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