fixed typo

Message ID mwpn1koyg0.fsf@tomate.loria.fr
State Superseded
Delegated to: Florian Weimer
Headers
Series fixed typo |

Commit Message

Paul Zimmermann Feb. 1, 2021, 10:49 a.m. UTC
  this is the only occurrence of "NULL character" in glibc, in other places it is
written "NUL character".
Paul
---
 sunrpc/xdr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Florian Weimer Feb. 1, 2021, 10:50 a.m. UTC | #1
* Paul Zimmermann:

> this is the only occurrence of "NULL character" in glibc, in other places it is
> written "NUL character".
> Paul
> ---
>  sunrpc/xdr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c
> index b5fb7455e2..a76094d6da 100644
> --- a/sunrpc/xdr.c
> +++ b/sunrpc/xdr.c
> @@ -728,7 +728,7 @@ libc_hidden_nolink_sunrpc (xdr_union, GLIBC_2_0)
>  /*
>   * XDR null terminated ASCII strings
>   * xdr_string deals with "C strings" - arrays of bytes that are
> - * terminated by a NULL character.  The parameter cpp references a
> + * terminated by a NUL character.  The parameter cpp references a
>   * pointer to storage; If the pointer is null, then the necessary
>   * storage is allocated.  The last parameter is the max allowed length
>   * of the string as specified by a protocol.

Looks okay to me once glibc 2.34 opens.

Thanks,
Florian
  
Florian Weimer Feb. 1, 2021, 2:22 p.m. UTC | #2
* Florian Weimer via Libc-alpha:

> * Paul Zimmermann:
>
>> this is the only occurrence of "NULL character" in glibc, in other places it is
>> written "NUL character".
>> Paul
>> ---
>>  sunrpc/xdr.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c
>> index b5fb7455e2..a76094d6da 100644
>> --- a/sunrpc/xdr.c
>> +++ b/sunrpc/xdr.c
>> @@ -728,7 +728,7 @@ libc_hidden_nolink_sunrpc (xdr_union, GLIBC_2_0)
>>  /*
>>   * XDR null terminated ASCII strings
>>   * xdr_string deals with "C strings" - arrays of bytes that are
>> - * terminated by a NULL character.  The parameter cpp references a
>> + * terminated by a NUL character.  The parameter cpp references a
>>   * pointer to storage; If the pointer is null, then the necessary
>>   * storage is allocated.  The last parameter is the max allowed length
>>   * of the string as specified by a protocol.
>
> Looks okay to me once glibc 2.34 opens.

And please change the commit subject before pushing this.

Thanks,
Florian
  

Patch

diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c
index b5fb7455e2..a76094d6da 100644
--- a/sunrpc/xdr.c
+++ b/sunrpc/xdr.c
@@ -728,7 +728,7 @@  libc_hidden_nolink_sunrpc (xdr_union, GLIBC_2_0)
 /*
  * XDR null terminated ASCII strings
  * xdr_string deals with "C strings" - arrays of bytes that are
- * terminated by a NULL character.  The parameter cpp references a
+ * terminated by a NUL character.  The parameter cpp references a
  * pointer to storage; If the pointer is null, then the necessary
  * storage is allocated.  The last parameter is the max allowed length
  * of the string as specified by a protocol.