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:
parent
c41fc06376
commit
57e7df8ae5
@ -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. */
|
||||
|
@ -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
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user