summaryrefslogtreecommitdiff
path: root/epan/filesystem.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-06-28 09:00:11 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-06-28 09:00:11 +0000
commit8443bbbf757ab65be172b294ff7c32cf93453de8 (patch)
treea97bda6f59cab16eea09e6e4caf2781785378177 /epan/filesystem.c
parent6c094f6775a72ab2cf362cc5b172393a97dd68f5 (diff)
downloadwireshark-8443bbbf757ab65be172b294ff7c32cf93453de8.tar.gz
Replace all strerror() with g_strerror().
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. svn path=/trunk/; revision=37812
Diffstat (limited to 'epan/filesystem.c')
-rw-r--r--epan/filesystem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/filesystem.c b/epan/filesystem.c
index 01f6324ce8..1072d91d59 100644
--- a/epan/filesystem.c
+++ b/epan/filesystem.c
@@ -395,7 +395,7 @@ init_progfile_dir(const char *arg0
* allocate for the current directory.
*/
return g_strdup_printf("pathconf failed: %s\n",
- strerror(errno));
+ g_strerror(errno));
}
curdir = (char *)g_malloc(path_max);
if (getcwd(curdir, path_max) == NULL) {
@@ -405,7 +405,7 @@ init_progfile_dir(const char *arg0
*/
g_free(curdir);
return g_strdup_printf("getcwd failed: %s\n",
- strerror(errno));
+ g_strerror(errno));
}
path = g_strdup_printf("%s/%s", curdir, arg0);
g_free(curdir);
@@ -1650,7 +1650,7 @@ file_open_error_message(int err, gboolean for_writing)
g_snprintf(errmsg_errno, sizeof(errmsg_errno),
"The file \"%%s\" could not be %s: %s.",
for_writing ? "created" : "opened",
- strerror(err));
+ g_strerror(err));
errmsg = errmsg_errno;
break;
}
@@ -1686,7 +1686,7 @@ file_write_error_message(int err)
default:
g_snprintf(errmsg_errno, sizeof(errmsg_errno),
"An error occurred while writing to the file \"%%s\": %s.",
- strerror(err));
+ g_strerror(err));
errmsg = errmsg_errno;
break;
}