mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:32:45 +00:00 
			
		
		
		
	Kernel: Copy command line to a safe place
This avoids kmalloc overwriting it because it may be within the kmalloc or eternal pool.
This commit is contained in:
		
							parent
							
								
									5a98e329d1
								
							
						
					
					
						commit
						41c005cb14
					
				
					 3 changed files with 22 additions and 4 deletions
				
			
		|  | @ -36,7 +36,8 @@ class CommandLine { | |||
|     AK_MAKE_ETERNAL; | ||||
| 
 | ||||
| public: | ||||
|     static void initialize(const String&); | ||||
|     static void early_initialize(const char* cmd_line); | ||||
|     static void initialize(); | ||||
| 
 | ||||
|     const String& string() const { return m_string; } | ||||
|     Optional<String> lookup(const String& key) const; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tom
						Tom