diff --git a/nixos/doc/manual/release-notes/rl-1703.xml b/nixos/doc/manual/release-notes/rl-1703.xml
index 5d6053fcbf7..8f9694bad8b 100644
--- a/nixos/doc/manual/release-notes/rl-1703.xml
+++ b/nixos/doc/manual/release-notes/rl-1703.xml
@@ -17,10 +17,8 @@ has the following highlights:
- Setting capabilities on programs is now supported with a
- setcap-wrapper functionality. This
- functionality and the setuid-wrapper are merged
- into a single "wrappers" module.
+ The setuid wrapper functionality now supports setting
+ capabilities.
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix
index 9dbc009a6e4..81597d91d89 100644
--- a/nixos/modules/module-list.nix
+++ b/nixos/modules/module-list.nix
@@ -113,7 +113,7 @@
./security/prey.nix
./security/rngd.nix
./security/rtkit.nix
- ./security/wrappers
+ ./security/wrappers/default.nix
./security/sudo.nix
./services/amqp/activemq/default.nix
./services/amqp/rabbitmq.nix
diff --git a/nixos/modules/security/wrappers/wrapper.c b/nixos/modules/security/wrappers/wrapper.c
index 4a656c54e3f..7091e314bb2 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);