X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Flinux-os.c;h=345ff482ba3941479cd798b4b909ba602f07eb48;hb=6cb4f9ea3f4e35a5a8e75922833e14575ae92180;hp=51bef4d55c6080d0d2ff00f288ec3632326288fa;hpb=baa0eaf21221dc564088c37b228c620c298aeaa1;p=sbcl.git diff --git a/src/runtime/linux-os.c b/src/runtime/linux-os.c index 51bef4d..345ff48 100644 --- a/src/runtime/linux-os.c +++ b/src/runtime/linux-os.c @@ -377,7 +377,7 @@ os_get_runtime_executable_path() char path[PATH_MAX + 1]; int size; - size = readlink("/proc/self/exe", path, sizeof(path)); + size = readlink("/proc/self/exe", path, sizeof(path)-1); if (size < 0) return NULL; else