[openssh-commits] [openssh] 03/05: upstream: Use pointer from strprefix in error message,
git+noreply at mindrot.org
git+noreply at mindrot.org
Sat May 24 14:03:49 AEST 2025
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit eccc15014fe146e8590568e6737a3097bfac3415
Author: dtucker at openbsd.org <dtucker at openbsd.org>
AuthorDate: Sat May 24 02:01:28 2025 +0000
upstream: Use pointer from strprefix in error message,
missed in previous.
OpenBSD-Commit-ID: d2cdec6cf0fcd4b0ee25e4e3fad8bc8cf0ee657d
---
ssh-keygen.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/ssh-keygen.c b/ssh-keygen.c
index e0cc35a77..ac0170de4 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.479 2025/05/23 12:52:45 dtucker Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.480 2025/05/24 02:01:28 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -2935,8 +2935,7 @@ do_moduli_gen(const char *out_file, char **opts, size_t nopts)
if ((p = strprefix(opts[i], "memory=", 0)) != NULL) {
memory = (u_int32_t)strtonum(p, 1, UINT_MAX, &errstr);
if (errstr) {
- fatal("Memory limit is %s: %s",
- errstr, opts[i]+7);
+ fatal("Memory limit is %s: %s", errstr, p);
}
} else if ((p = strprefix(opts[i], "start=", 0)) != NULL) {
/* XXX - also compare length against bits */
@@ -2945,8 +2944,7 @@ do_moduli_gen(const char *out_file, char **opts, size_t nopts)
} else if ((p = strprefix(opts[i], "bits=", 0)) != NULL) {
moduli_bits = (int)strtonum(p, 1, INT_MAX, &errstr);
if (errstr) {
- fatal("Invalid number: %s (%s)",
- opts[i]+12, errstr);
+ fatal("Invalid number: %s (%s)", p, errstr);
}
} else {
fatal("Option \"%s\" is unsupported for moduli "
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list