Fixed compiler warnings

SVN revision: 2389
This commit is contained in:
Stefan Ritt 2011-02-07 15:59:47 +00:00
parent 1fc938b8a2
commit 874fe97bcb

View File

@ -14963,7 +14963,7 @@ int retrieve_remote_md5(LOGBOOK * lbs, char *host, MD5_INDEX ** md5_index, char
if (!p) { if (!p) {
if (isparam("debug")) if (isparam("debug"))
rsputs(text); rsputs(text);
sprintf(error_str, loc("Remote server is not an ELOG server")); strlcpy(error_str, loc("Remote server is not an ELOG server"), 256);
xfree(text); xfree(text);
return -1; return -1;
} }
@ -15036,7 +15036,7 @@ int retrieve_remote_md5(LOGBOOK * lbs, char *host, MD5_INDEX ** md5_index, char
if (isparam("debug")) if (isparam("debug"))
rsputs(text); rsputs(text);
if (strstr(text, "Login")) { if (strstr(text, "Login")) {
sprintf(error_str, loc("No user name supplied to access remote logbook")); strlcpy(error_str, loc("No user name supplied to access remote logbook"), 256);
xfree(text); xfree(text);
return -2; return -2;
} else } else