diff --git a/src/ascent.c b/src/ascent.c
index e8ac0c2023b3a1002b5dae49973822d83835e146..6b4f21fc6b887b37b6ddfc70a8cdd5bfdd7e9018 100644 (file)
--- a/src/ascent.c
+++ b/src/ascent.c
{
int status;
- status = snprintf (credentials, sizeof (credentials), "%s:%s",
+ status = ssnprintf (credentials, sizeof (credentials), "%s:%s",
user, (pass == NULL) ? "" : pass);
if (status >= sizeof (credentials))
{
"credentials have been truncated.");
return (-1);
}
- credentials[sizeof (credentials) - 1] = '\0';
curl_easy_setopt (curl, CURLOPT_USERPWD, credentials);
}