The branch main has been updated by obiwac:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=d7c110658e0b11fbe7a1f5d9f2b340d1985b9742

commit d7c110658e0b11fbe7a1f5d9f2b340d1985b9742
Author:     Aymeric Wibo <[email protected]>
AuthorDate: 2026-06-19 14:53:42 +0000
Commit:     Aymeric Wibo <[email protected]>
CommitDate: 2026-06-19 14:53:45 +0000

    ctermid(3): Fix return
    
    Reported by:    bnovkov
    Fixes:  dc24f31b67f5 ("ctermid(3): Fix return values section")
    Sponsored by:   Klara, Inc.
---
 lib/libc/gen/ctermid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libc/gen/ctermid.c b/lib/libc/gen/ctermid.c
index 1ca2401f0c1d..add37be1aa1a 100644
--- a/lib/libc/gen/ctermid.c
+++ b/lib/libc/gen/ctermid.c
@@ -59,7 +59,7 @@ __ssp_real(ctermid)(char *buf)
                (void)sysctlbyname("kern.devname", buf + LEN_PATH_DEV,
                    &dlen, &sb.st_rdev, sizeof(sb.st_rdev));
        errno = sverrno;
-       return (s);
+       return (buf);
 }
 
 char *

Reply via email to