mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	- Do not use sprintf(), use snprintf() instead.
This commit is contained in:
		
							parent
							
								
									5fb47f40b8
								
							
						
					
					
						commit
						331f5630e9
					
				@ -406,7 +406,7 @@ int mpi_write_string( const mpi *X, int radix, char *s, size_t *slen )
 | 
				
			|||||||
                if( c == 0 && k == 0 && ( i + j + 3 ) != 0 )
 | 
					                if( c == 0 && k == 0 && ( i + j + 3 ) != 0 )
 | 
				
			||||||
                    continue;
 | 
					                    continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                p += sprintf( p, "%02X", c );
 | 
					                p += snprintf( p, 2, "%02X", c );
 | 
				
			||||||
                k = 1;
 | 
					                k = 1;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user