mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
trial to fix a win64 compiler warning.
This commit is contained in:
parent
d7f33b7e4e
commit
95c2ab77e7
@ -3056,11 +3056,11 @@ static int parseconfig(const char *filename,
|
|||||||
/* We got a valid filename - get the directory part */
|
/* We got a valid filename - get the directory part */
|
||||||
char *lastdirchar = strrchr(filebuffer, '\\');
|
char *lastdirchar = strrchr(filebuffer, '\\');
|
||||||
if (lastdirchar) {
|
if (lastdirchar) {
|
||||||
int remaining;
|
size_t remaining;
|
||||||
*lastdirchar = 0;
|
*lastdirchar = 0;
|
||||||
/* If we have enough space, build the RC filename */
|
/* If we have enough space, build the RC filename */
|
||||||
remaining = sizeof(filebuffer) - strlen(filebuffer);
|
remaining = sizeof(filebuffer) - strlen(filebuffer);
|
||||||
if ((int)strlen(CURLRC) < remaining - 1) {
|
if (strlen(CURLRC) < remaining - 1) {
|
||||||
snprintf(lastdirchar, remaining,
|
snprintf(lastdirchar, remaining,
|
||||||
"%s%s", DIR_CHAR, CURLRC);
|
"%s%s", DIR_CHAR, CURLRC);
|
||||||
/* Don't bother checking if it exists - we do
|
/* Don't bother checking if it exists - we do
|
||||||
|
Loading…
Reference in New Issue
Block a user