瀏覽代碼

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

madlohe 5 年之前
父節點
當前提交
ef7bc20096
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/nrpe.c

+ 1 - 1
src/nrpe.c

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