*** empty log message ***

svn path=/trunk/boinc/; revision=9919
This commit is contained in:
Rom Walton 2006-04-17 08:27:03 +00:00
parent 8ba4ab7e4e
commit fccdc7444f
1 changed files with 3 additions and 3 deletions

View File

@ -266,9 +266,9 @@ int diagnostics_init(
} }
fclose(p); fclose(p);
if (strlen(proxy_address)) { if (boinc_proxy_enabled) {
if (sizeof(boinc_proxy) > int buffer_used = snprintf(boinc_proxy, sizeof(boinc_proxy), "%s:%d", proxy_address, proxy_port);
snprintf(boinc_proxy, sizeof(boinc_proxy), "%s:%d", proxy_address, proxy_port)) { if ((sizeof(boinc_proxy) == buffer_used) || (-1 == buffer_used)) {
boinc_proxy[255] = '\0'; boinc_proxy[255] = '\0';
} }
} }