Przeglądaj źródła

process_metachars should null the end of the processed string, not the end of the original string

madlohe 5 lat temu
rodzic
commit
ef7bc20096
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/nrpe.c

+ 1 - 1
src/nrpe.c

@@ -822,7 +822,7 @@ char* process_metachars(const char* input)
 				break;
 		}
 	}
-	copy[j] = '\0';
+	copy[i] = '\0';
 
 	return copy;
 }