rsa.c: strerror -> g_strerror

Pacify checkAPIs.pl

Change-Id: I637a6cd678b99d05cd1b26fd3cba6ad4dd19e8d2
Reviewed-on: https://code.wireshark.org/review/22957
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Michael Mann 2017-08-05 13:01:29 -04:00
parent 92adb99d00
commit 1d457701c5
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ rsa_load_pem_key(FILE *fp, char **err)
*err = NULL;
if (ws_fstat64(ws_fileno(fp), &statbuf) == -1) {
*err = g_strdup_printf("can't ws_fstat64 file: %s", strerror(errno));
*err = g_strdup_printf("can't ws_fstat64 file: %s", g_strerror(errno));
return NULL;
}
if (S_ISDIR(statbuf.st_mode)) {
@ -138,7 +138,7 @@ rsa_load_pem_key(FILE *fp, char **err)
if (bytes < key.size) {
if (bytes == 0 && ferror(fp)) {
*err = g_strdup_printf("can't read from file %d bytes, got error %s",
key.size, strerror(errno));
key.size, g_strerror(errno));
} else {
*err = g_strdup_printf("can't read from file %d bytes, got %d",
key.size, bytes);