Pārlūkot izejas kodu

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

madlohe 6 gadi atpakaļ
vecāks
revīzija
ef7bc20096
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;
 }