FreeBSD Bugzilla – Attachment 215384 Details for
Bug 247102
getlogin_r(): Sort of a typo: int is actually a size_t
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Just a small patch
freeebsd-int-size_t.patch (text/plain), 754 bytes, created by
Bertram Scharpf
on 2020-06-09 06:10:08 UTC
(
hide
)
Description:
Just a small patch
Filename:
MIME Type:
Creator:
Bertram Scharpf
Created:
2020-06-09 06:10:08 UTC
Size:
754 bytes
patch
obsolete
>diff --git lib/libc/gen/getlogin.c lib/libc/gen/getlogin.c >index 3a07ca36b..759819d96 100644 >--- lib/libc/gen/getlogin.c >+++ lib/libc/gen/getlogin.c >@@ -58,10 +58,10 @@ getlogin(void) > } > > int >-getlogin_r(char *logname, int namelen) >+getlogin_r(char *logname, size_t namelen) > { >- char tmpname[MAXLOGNAME]; >- int len; >+ char tmpname[MAXLOGNAME]; >+ size_t len; > > if (namelen < 1) > return (ERANGE); >diff --git lib/libc/sys/getlogin.2 lib/libc/sys/getlogin.2 >index a0c1dd820..bc829f25b 100644 >--- lib/libc/sys/getlogin.2 >+++ lib/libc/sys/getlogin.2 >@@ -44,7 +44,7 @@ > .Fn getlogin void > .In sys/param.h > .Ft int >-.Fn getlogin_r "char *name" "int len" >+.Fn getlogin_r "char *name" "size_t len" > .Ft int > .Fn setlogin "const char *name" > .Sh DESCRIPTION
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 247102
: 215384