diff options
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/frobnicate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/examples/frobnicate.c b/src/examples/frobnicate.c index 6b6b8ff..9de4b49 100644 --- a/src/examples/frobnicate.c +++ b/src/examples/frobnicate.c @@ -21,6 +21,7 @@ #include <glib.h> #include <unistd.h> +#include <errno.h> #include <sys/types.h> int @@ -38,7 +39,7 @@ main (int argc, char *argv[]) if (getcwd (cwd, sizeof cwd) == NULL) { - g_printerr ("Error getting cwd: %m"); + g_printerr ("Error getting cwd: %s", g_strerror (errno)); goto out; } |