minor bug fix to leverage fko_errstr() returned error string properly
This commit is contained in:
parent
e57156e57d
commit
4dd65c5761
@ -33,7 +33,7 @@
|
|||||||
char *
|
char *
|
||||||
fko_errmsg(char *msg, int res) {
|
fko_errmsg(char *msg, int res) {
|
||||||
static char err_msg[MSG_BUFSIZE+1] = {0};
|
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);
|
return(err_msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user