Skip to content
Permalink
Browse files
CONNECT: use my_snprintf
  • Loading branch information
vuvova committed May 27, 2021
1 parent 1638241 commit d06205b
Showing 1 changed file with 3 additions and 3 deletions.
@@ -60,12 +60,12 @@ int Xcurl(PGLOBAL g, PCSZ Http, PCSZ Uri, PCSZ filename)

if (Uri) {
if (*Uri == '/' || Http[strlen(Http) - 1] == '/')
sprintf(buf, "%s%s", Http, Uri);
my_snprintf(buf, sizeof(buf)-1, "%s%s", Http, Uri);
else
sprintf(buf, "%s/%s", Http, Uri);
my_snprintf(buf, sizeof(buf)-1, "%s/%s", Http, Uri);

} else
strcpy(buf, Http);
my_snprintf(buf, sizeof(buf)-1, "%s", Http);

#if defined(__WIN__)
char cmd[1024];

0 comments on commit d06205b

Please sign in to comment.