about summary refs log tree commit diff
path: root/nixos/modules/security/wrappers
diff options
context:
space:
mode:
authorParnell Springmeyer <parnell@digitalmentat.com>2017-02-14 07:38:45 -0600
committerParnell Springmeyer <parnell@digitalmentat.com>2017-02-14 07:38:45 -0600
commitfb6d13c01aa22cdaffe45597495f390ef2989eda (patch)
tree4e674693ab008a68b41cce6f8a424e5e8ae71606 /nixos/modules/security/wrappers
parent467bb3f674fad56ef697bafbcc5f4db71acb036e (diff)
downloadnixlib-fb6d13c01aa22cdaffe45597495f390ef2989eda.tar
nixlib-fb6d13c01aa22cdaffe45597495f390ef2989eda.tar.gz
nixlib-fb6d13c01aa22cdaffe45597495f390ef2989eda.tar.bz2
nixlib-fb6d13c01aa22cdaffe45597495f390ef2989eda.tar.lz
nixlib-fb6d13c01aa22cdaffe45597495f390ef2989eda.tar.xz
nixlib-fb6d13c01aa22cdaffe45597495f390ef2989eda.tar.zst
nixlib-fb6d13c01aa22cdaffe45597495f390ef2989eda.zip
Addressing feedback and fixing a bug
Diffstat (limited to 'nixos/modules/security/wrappers')
-rw-r--r--nixos/modules/security/wrappers/wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/security/wrappers/wrapper.c b/nixos/modules/security/wrappers/wrapper.c
index 4a656c54e3f9..7091e314bb22 100644
--- a/nixos/modules/security/wrappers/wrapper.c
+++ b/nixos/modules/security/wrappers/wrapper.c
@@ -165,7 +165,7 @@ int main(int argc, char * * argv)
     // should safely fit within the PATH_MAX system limit. Though I'm
     // not positive it's safe...
     char selfPath[PATH_MAX];
-    int selfPathSize = readlink("/proc/self/exe", selfPath, sizeof(selfPath) - 1);
+    int selfPathSize = readlink("/proc/self/exe", selfPath, sizeof(selfPath));
 
     assert(selfPathSize > 0);