Skip to content

Commit 334379c

Browse files
committed
passing host name was secured
1 parent 3cc98e8 commit 334379c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/hlp/hlp_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ hardware.\033[0m\n\n\
101101
void print_ver_info(void)
102102
{
103103
print_banner();
104-
printf("spynix v4.1.1\n\nFor more info visit: \
104+
printf("spynix v4.1.2\n\nFor more info visit: \
105105
\033[36mhttps://github.com/git-user-cpp/spynix\033[0m\n");
106106
}
107107

src/net/net_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <arpa/inet.h>
2424
#include "net_info.h"
2525

26-
void print_net_info(char *hostname)
26+
void print_net_info(const char *hostname)
2727
{
2828
struct hostent *host = gethostbyname(hostname);
2929
struct ifaddrs *ifaddr, *ifa;

src/net/net_info.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616

1717
#ifndef NET_INFO_H_SENTRY
1818
#define NET_INFO_H_SENTRY
19-
void print_net_info(char *hostname);
19+
void print_net_info(const char *hostname);
2020
#endif

0 commit comments

Comments
 (0)