aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index 64d9e0c2..c2876bde 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -659,7 +659,7 @@ char *ssh_path_expand_tilde(const char *d) {
size_t s = p - d;
char u[128];
- if (s > sizeof(u)) {
+ if (s >= sizeof(u)) {
return NULL;
}
memcpy(u, d, s);