CONNECT: use my_snprintf
This commit is contained in:
parent
1638241e31
commit
d06205ba37
@ -60,12 +60,12 @@ int Xcurl(PGLOBAL g, PCSZ Http, PCSZ Uri, PCSZ filename)
|
|||||||
|
|
||||||
if (Uri) {
|
if (Uri) {
|
||||||
if (*Uri == '/' || Http[strlen(Http) - 1] == '/')
|
if (*Uri == '/' || Http[strlen(Http) - 1] == '/')
|
||||||
sprintf(buf, "%s%s", Http, Uri);
|
my_snprintf(buf, sizeof(buf)-1, "%s%s", Http, Uri);
|
||||||
else
|
else
|
||||||
sprintf(buf, "%s/%s", Http, Uri);
|
my_snprintf(buf, sizeof(buf)-1, "%s/%s", Http, Uri);
|
||||||
|
|
||||||
} else
|
} else
|
||||||
strcpy(buf, Http);
|
my_snprintf(buf, sizeof(buf)-1, "%s", Http);
|
||||||
|
|
||||||
#if defined(__WIN__)
|
#if defined(__WIN__)
|
||||||
char cmd[1024];
|
char cmd[1024];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user