mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:03:38 +03:00
terminology: call them null-terminated strings
Updated terminology in docs, comments and phrases to refer to C strings as "null-terminated". Done to unify with how most other C oriented docs refer of them and what users in general seem to prefer (based on a single highly unscientific poll on twitter). Reported-by: coinhubs on github Fixes #5598 Closes #5608
This commit is contained in:
parent
ff43fb6dec
commit
032e838b73
107 changed files with 139 additions and 139 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
|
|
@ -238,7 +238,7 @@ char *getpass_r(const char *prompt, /* prompt to display */
|
|||
fputs(prompt, stderr);
|
||||
nread = read(fd, password, buflen);
|
||||
if(nread > 0)
|
||||
password[--nread] = '\0'; /* zero terminate where enter is stored */
|
||||
password[--nread] = '\0'; /* null-terminate where enter is stored */
|
||||
else
|
||||
password[0] = '\0'; /* got nothing */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue