Fix fatal bug
This commit is contained in:
		
							parent
							
								
									3c04173fbf
								
							
						
					
					
						commit
						20f80a223f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -269,7 +269,7 @@ database_helper_get_strings(sqlite3_stmt *stmt)
 | 
			
		|||
            result = (char**)realloc(result, sizeof(char*) * (row + 1));
 | 
			
		||||
            result[row - 1] = malloc(sizeof(char) * (new_string_len + 1));
 | 
			
		||||
            strncpy(result[row - 1], new_string, new_string_len);
 | 
			
		||||
            result[new_string_len] = '\0';
 | 
			
		||||
            result[row - 1][new_string_len] = '\0';
 | 
			
		||||
        }
 | 
			
		||||
        else
 | 
			
		||||
        {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue