help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] [PATCH] 2008-08-08 Samuel Tardieu <address@hidden>


From: Samuel Tardieu
Subject: [Help-smalltalk] [PATCH] 2008-08-08 Samuel Tardieu <address@hidden>
Date: Fri, 08 Aug 2008 16:54:15 +0200
User-agent: StGIT/0.14.3.213.g2044

        * libgst/sysdep.c (find_executable): Correctly zero-terminate
        "location" before returning it.
---
 libgst/sysdep.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libgst/sysdep.c b/libgst/sysdep.c
index 709b4dd..04c7f5b 100644
--- a/libgst/sysdep.c
+++ b/libgst/sysdep.c
@@ -1123,7 +1123,7 @@ find_executable (const char *argv0)
     n = readlink (buf, location, path_max);
     if (n > 0 && location[0] != '[')
       {
-        location[n] == '\0';
+        location[n] = '\0';
         return location;
       }
     if (executable_fd < 0)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]