(svn r4560) - Fix: (r3008) Remove VS2005 undefined vsnprintf() as it doesn't exist in the windows libraries (only _vsnprintf). This caused the bad function to be called that could result in non-properly terminated strings. Thanks for noticing Tron.
This commit is contained in:
		
							
								
								
									
										2
									
								
								win32.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								win32.c
									
									
									
									
									
								
							@@ -1197,7 +1197,6 @@ int CDECL snprintf(char *str, size_t size, const char *format, ...)
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef _MSC_VER
 | 
					#ifdef _MSC_VER
 | 
				
			||||||
#if _MSC_VER < 1400 /* Already defined in VS 2005 */
 | 
					 | 
				
			||||||
int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap)
 | 
					int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	int ret;
 | 
						int ret;
 | 
				
			||||||
@@ -1206,7 +1205,6 @@ int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap)
 | 
				
			|||||||
	return ret;
 | 
						return ret;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Insert a chunk of text from the clipboard onto the textbuffer. Get TEXT clipboard
 | 
					 * Insert a chunk of text from the clipboard onto the textbuffer. Get TEXT clipboard
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user