* 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