mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
configure CC support, strrchr over rindex
This commit is contained in:
parent
5ae15317c6
commit
9c3feee9b6
5 changed files with 27 additions and 18 deletions
|
@ -32,10 +32,10 @@ char *nntp_read_server_capacity(int sock) {
|
|||
buf[strlen(buf) - 1] = 0;
|
||||
if (buf[strlen(buf) - 1] == '\r')
|
||||
buf[strlen(buf) - 1] = 0;
|
||||
#ifdef NO_RINDEX
|
||||
if ((ptr = strrchr(buf, '\n')) != NULL) {
|
||||
#else
|
||||
#ifdef NO_STRRCHR
|
||||
if ((ptr = rindex(buf, '\n')) != NULL) {
|
||||
#else
|
||||
if ((ptr = strrchr(buf, '\n')) != NULL) {
|
||||
#endif
|
||||
ptr++;
|
||||
if (isdigit((int) *ptr) && *(ptr + 3) == ' ')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue