Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
updated: [master] [038b5e7] Ticket #2787: crash when creating relative symlink.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andrew Borodin  
View profile  
 More options Apr 25 2012, 6:59 am
From: "Andrew Borodin" <aboro...@vmail.ru>
Date: Wed, 25 Apr 2012 12:59:10 +0200 (CEST)
Local: Wed, Apr 25 2012 6:59 am
Subject: updated: [master] [038b5e7] Ticket #2787: crash when creating relative symlink.
The following commit has been merged in the master branch:
commit 038b5e7406d177792d3e2cd904f6d32e5f392903
Author: Andrew Borodin <aboro...@vmail.ru>
Date:   Tue Apr 24 20:41:37 2012 +0400

    Ticket #2787: crash when creating relative symlink.

    Signed-off-by: Andrew Borodin <aboro...@vmail.ru>

diff --git a/lib/util.c b/lib/util.c
index 2c6011b..490bdfc 100644
--- a/lib/util.c
+++ b/lib/util.c
@@ -112,14 +112,14 @@ is_8bit_printable (unsigned char c)
 static char *
 resolve_symlinks (const vfs_path_t *vpath)
 {
-    char *p;
+    char *p, *p2;
     char *buf, *buf2, *q, *r, c;
     struct stat mybuf;

     if (vpath->relative)
         return NULL;

-    p = vfs_path_to_str (vpath);
+    p = p2 = vfs_path_to_str (vpath);
     r = buf = g_malloc (MC_MAXPATHLEN);
     buf2 = g_malloc (MC_MAXPATHLEN);
     *r++ = PATH_SEP;
@@ -181,7 +181,7 @@ resolve_symlinks (const vfs_path_t *vpath)

   ret:
     g_free (buf2);
-    g_free (p);
+    g_free (p2);
     return buf;
 }

--
Midnight Commander Development


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »