mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Use PyOS_snprintf instead of sprintf.
This commit is contained in:
		
							parent
							
								
									ef58b31991
								
							
						
					
					
						commit
						518ab1c02a
					
				
					 13 changed files with 45 additions and 39 deletions
				
			
		|  | @ -195,7 +195,7 @@ tb_displayline(PyObject *f, char *filename, int lineno, char *name) | |||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	sprintf(linebuf, FMT, filename, lineno, name); | ||||
| 	PyOS_snprintf(linebuf, sizeof(linebuf), FMT, filename, lineno, name); | ||||
| 	err = PyFile_WriteString(linebuf, f); | ||||
| 	if (xfp == NULL || err != 0) | ||||
| 		return err; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jeremy Hylton
						Jeremy Hylton