From 7684a17cd31eb04b6cae639639c005d8e8f5579e Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Thu, 11 Mar 1999 02:01:22 +0000 Subject: [PATCH] Typo fix --- src/utilunix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utilunix.c b/src/utilunix.c index 10cd3b15a..e0904dfba 100644 --- a/src/utilunix.c +++ b/src/utilunix.c @@ -949,9 +949,9 @@ int socketpair(int dummy1, int dummy2, int dummy3, int fd[2]) char * g_readlink (char *path) { - char small_buffer [10]; + char small_buffer [80]; char *str; - int n; + int n, size; n = readlink (path, small_buffer, sizeof (small_buffer)-1); if (n == -1) @@ -974,7 +974,7 @@ g_readlink (char *path) if (n < size-1){ char *s; - size [n] = 0; + s [n] = 0; s = g_strdup (str); g_free (str); return s;