*** empty log message ***

svn path=/trunk/boinc/; revision=189
This commit is contained in:
Barry Luong 2002-07-12 18:27:29 +00:00
parent a6929b2035
commit ce23e8adda
1 changed files with 3 additions and 2 deletions

View File

@ -165,8 +165,9 @@ int handle_request(FILE* in, R_RSA_PUBLIC_KEY& key) {
int get_key(R_RSA_PUBLIC_KEY& key) { int get_key(R_RSA_PUBLIC_KEY& key) {
FILE* f; FILE* f;
int retval; int retval;
char buf[256];
f = fopen(strcat(getenv("BOINC_KEY_DIR"), "/upload_public"), "r"); sprintf(buf, "%s/upload_public", getenv("BOINC_KEY_DIR"));
f = fopen(buf, "r");
if (!f) return -1; if (!f) return -1;
retval = scan_key_hex(f, (KEY*)&key, sizeof(key)); retval = scan_key_hex(f, (KEY*)&key, sizeof(key));
fclose(f); fclose(f);