[PATCH] 2008-08-08 Samuel Tardieu <sam@rfc1149.net>

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] 2008-08-08 Samuel Tardieu <sam@rfc1149.net>

Samuel Tardieu
        * 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)



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] 2008-08-08 Samuel Tardieu <sam@rfc1149.net>

Samuel Tardieu
Sorry for the less-than-informative subject line, this is an artefact of
using StGit, I'll be more careful in the future.



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Re: [PATCH] 2008-08-08 Samuel Tardieu <sam@rfc1149.net>

Paolo Bonzini-2
Samuel Tardieu wrote:
> Sorry for the less-than-informative subject line, this is an artefact of
> using StGit, I'll be more careful in the future.

No big deal, happy to see you here as well as on GCC!

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk