[seed] [os] Also use canonicalize_file_name in os.realpath
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] [os] Also use canonicalize_file_name in os.realpath
- Date: Thu, 16 Jul 2009 21:52:33 +0000 (UTC)
commit cb2a4316ccf6c7fc923bbc9ccde1072d83b1e994
Author: Tim Horton <hortont svn gnome org>
Date: Thu Jul 16 16:55:27 2009 -0400
[os] Also use canonicalize_file_name in os.realpath
modules/os/seed-os.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/os/seed-os.c b/modules/os/seed-os.c
index 4b93a56..17050be 100644
--- a/modules/os/seed-os.c
+++ b/modules/os/seed-os.c
@@ -36,14 +36,14 @@ seed_os_realpath (SeedContext ctx,
SeedException * exception)
{
gchar *arg;
- gchar ret[PATH_MAX];
+ gchar *ret;
if (argument_count != 1)
{
EXPECTED_EXCEPTION("os.realpath", "1 argument");
}
arg = seed_value_to_string (ctx, arguments[0], exception);
- realpath(arg, ret);
+ ret = canonicalize_file_name(arg);
g_free (arg);
return seed_value_from_string (ctx, ret, exception);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]