Added the forgotten size update if copied less chars.
							parent
							
								
									9c04ce6a81
								
							
						
					
					
						commit
						f1118030e8
					
				| 
						 | 
					@ -666,6 +666,7 @@ bool GetItemDefinitionProperty( SteamItemDef_t iDefinition, const char *pchPrope
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    // copy what we can
 | 
					                    // copy what we can
 | 
				
			||||||
                    strncpy(pchValueBuffer, val.c_str(), *punValueBufferSizeOut);
 | 
					                    strncpy(pchValueBuffer, val.c_str(), *punValueBufferSizeOut);
 | 
				
			||||||
 | 
					                    *punValueBufferSizeOut = std::min(static_cast<uint32>(val.length() + 1), *punValueBufferSizeOut);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                else
 | 
					                else
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue