summaryrefslogtreecommitdiff
path: root/bin/systrace/intercept.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/systrace/intercept.c')
-rw-r--r--bin/systrace/intercept.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/systrace/intercept.c b/bin/systrace/intercept.c
index b799205b90e..7c5c025f9cc 100644
--- a/bin/systrace/intercept.c
+++ b/bin/systrace/intercept.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intercept.c,v 1.9 2002/07/07 23:14:43 provos Exp $ */
+/* $OpenBSD: intercept.c,v 1.10 2002/07/09 13:07:42 dhartmei Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -416,7 +416,7 @@ intercept_get_string(int fd, pid_t pid, void *addr)
if (strlen(name) < off)
done = 1;
- } while (!done && off < sizeof(name));
+ } while (!done && off + 5 < sizeof(name));
if (!done) {
warnx("%s: string too long", __func__);