mirror of
				git://git.code.sf.net/p/cdesktopenv/code
				synced 2025-03-09 15:50:02 +00:00 
			
		
		
		
	dtprintinfo: Coverity 88683
This commit is contained in:
		
							parent
							
								
									1cd6ca0999
								
							
						
					
					
						commit
						445019f086
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -771,16 +771,16 @@ char *DtPrinterIcon::GetPrinterLabel(const char *printer,
 | 
			
		|||
{
 | 
			
		||||
   static char buf[200];
 | 
			
		||||
 | 
			
		||||
   sprintf(buf, "%s_Print", printer);
 | 
			
		||||
   snprintf(buf, sizeof(buf), "%s_Print", printer);
 | 
			
		||||
   if (_app_mode != INITIALIZE_PRINTERS && DtActionExists(buf))
 | 
			
		||||
    {
 | 
			
		||||
      char *label = DtActionLabel(buf);
 | 
			
		||||
      if (label)
 | 
			
		||||
         strcpy(buf, label);
 | 
			
		||||
         snprintf(buf, sizeof(buf), "%s", label);
 | 
			
		||||
      else
 | 
			
		||||
         strcpy(buf, printer);
 | 
			
		||||
         snprintf(buf, sizeof(buf), "%s", printer);
 | 
			
		||||
    }
 | 
			
		||||
   else
 | 
			
		||||
      strcpy(buf, printer);
 | 
			
		||||
      snprintf(buf, sizeof(buf), "%s", printer);
 | 
			
		||||
   return buf;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue