libceph: use snprintf for formatting object name
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
		
					parent
					
						
							
								ae59808301
							
						
					
				
			
			
				commit
				
					
						2dab036b8c
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -124,7 +124,7 @@ static void calc_layout(struct ceph_osd_client *osdc,
 | 
			
		|||
	ceph_calc_raw_layout(osdc, layout, vino.snap, off,
 | 
			
		||||
			     plen, &bno, req, op);
 | 
			
		||||
 | 
			
		||||
	sprintf(req->r_oid, "%llx.%08llx", vino.ino, bno);
 | 
			
		||||
	snprintf(req->r_oid, sizeof(req->r_oid), "%llx.%08llx", vino.ino, bno);
 | 
			
		||||
	req->r_oid_len = strlen(req->r_oid);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue