Explorar el Código

Typographical error fixes

Implements Pull Request https://github.com/NagiosEnterprises/nrpe/pull/17
John C. Frickson hace 10 años
padre
commit
c4ebc50693
Se han modificado 3 ficheros con 5 adiciones y 5 borrados
  1. 2 2
      SECURITY.md
  2. 2 2
      src/acl.c
  3. 1 1
      src/utils.c

+ 2 - 2
SECURITY.md

@@ -25,8 +25,8 @@ it if you know what you're doing!
 #### BASH COMMAND SUBSTITUTION ####
 
 Even with the metacharacter restrictions below, if command arguments 
-are enabled, it is still possible to send bash command substitions 
-in the form `$(...)` as an agrument. This is explicity disabled by 
+are enabled, it is still possible to send bash command substitutions 
+in the form `$(...)` as an argument. This is explicitly disabled by 
 default, but can be enabled by a configure-time option and a
 configuration file option. Enabling this option is **VERY RISKY**
 and its use is **HIGHLY DISCOURAGED**.

+ 2 - 2
src/acl.c

@@ -543,14 +543,14 @@ void trim( char *src, char *dest) {
 	return;
 }
 
-/* This function splits allowed_hosts to substrings with comma(,) as a delimeter.
+/* This function splits allowed_hosts to substrings with comma(,) as a delimiter.
  * It doesn't check validness of ACL record (add_ipv4_to_acl() and add_domain_to_acl() do),
  * just trims spaces from ACL records.
  * After this it sends ACL records to add_ipv4_to_acl() or add_domain_to_acl().
  */
 
 void parse_allowed_hosts(char *allowed_hosts) {
-	char *hosts = strdup( allowed_hosts);	/* Copy since strtok* modifes original */
+	char *hosts = strdup( allowed_hosts);	/* Copy since strtok* modifies original */
 	char *saveptr;
 	char *tok;
 	const char *delim = ",";

+ 1 - 1
src/utils.c

@@ -91,7 +91,7 @@ void randomize_buffer(char *buffer,int buffer_size){
 	/**** FILL BUFFER WITH RANDOM ALPHA-NUMERIC CHARACTERS ****/
 
 	/***************************************************************
-	   Only use alpha-numeric characters becase plugins usually
+	   Only use alpha-numeric characters because plugins usually
 	   only generate numbers and letters in their output.  We
 	   want the buffer to contain the same set of characters as
 	   plugins, so its harder to distinguish where the real output