1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

missed a couple of strchr calls

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent c41fc06376
commit 57e7df8ae5
4 changed files with 3 additions and 8 deletions

View File

@ -63,7 +63,7 @@ extern void charset_initialise(void);
/* this is used to determine if a character is safe to use in
something that may be put on a command line */
#define issafe(c) (isalnum((c&0xff)) || strchr("-._",c))
#define issafe(c) (isalnum((c&0xff)) || strchr_m("-._",c))
#endif
/* Dynamic codepage files defines. */

View File

@ -611,11 +611,6 @@ extern char *sys_errlist[];
#define strerror(i) sys_errlist[i]
#endif
#ifndef HAVE_STRCHR
# define strchr index
# define strrchr rindex
#endif
#ifndef HAVE_ERRNO_DECL
extern int errno;
#endif

View File

@ -895,7 +895,7 @@ static void read_authfile (char *filename, char* username, char* password)
/* break up the line into parameter & value.
will need to eat a little whitespace possibly */
param = buf;
if (!(ptr = strchr (buf, '=')))
if (!(ptr = strchr_m(buf, '=')))
continue;
val = ptr+1;
*ptr = '\0';

View File

@ -132,7 +132,7 @@ static void read_authfile (
/* break up the line into parameter & value.
will need to eat a little whitespace possibly */
param = buf;
if (!(ptr = strchr (buf, '=')))
if (!(ptr = strchr_m(buf, '=')))
continue;
val = ptr+1;
*ptr = '\0';