minor bug fix to leverage fko_errstr() returned error string properly

This commit is contained in:
Michael Rash 2012-11-08 21:42:18 -05:00
parent e57156e57d
commit 4dd65c5761

View File

@ -33,7 +33,7 @@
char *
fko_errmsg(char *msg, int res) {
static char err_msg[MSG_BUFSIZE+1] = {0};
snprintf(err_msg, MSG_BUFSIZE, "Error: %s: %i", msg, fko_errstr(res));
snprintf(err_msg, MSG_BUFSIZE, "Error: %s: %s", msg, fko_errstr(res));
return(err_msg);
}