zzz.c: In function ‘f’:                                                        
zzz.c:12:13: warning: snprintf’ will truncate the output (5 bytes) to size 4 [-Wformat-truncation=]
12 |   snprintf (d, sizeof d, "%i", 1235);                                                          
   |             ^             ^~^                                                                  
   |             |             | |                                                                  
   |             |             | 1 byte (for NUL terminator)                                        
   |             |             4 bytes                                                              
   |             capacity: 4 bytes                                                                  
zzz.c:1:6: note: destination declared here                                                          
1 | char d[4];                                                                                      
  |      ^                                                                                          
zzz.c:15:13: warning: snprintf’ will truncate the output (6 bytes) to size 4 [-Wformat-truncation=]
15 |   snprintf (d, sizeof d, "%iAB", 123);                                                         
   |             ^             ^~^~^                                                                
   |             |             | | |                                                                
   |             |             | | 1 byte (for NUL terminator)                                      
   |             |             | 2 bytes                                                            
   |             |             3 bytes                                                              
   |             capacity: 4 bytes                                                                  
zzz.c:1:6: note: destination declared here                                                          
1 | char d[4];                                                                                      
  |      ^                                                                                          
zzz.c:18:12: warning: buffer overflow: ‘sprintf’ will write 5 bytes into a destination of size 4 [-Wformat-overflow=]
18 |   sprintf (d, "%i", 1235);                                                                                      
   |            ^   ^~^                                                                                              
   |            |   | |                                                                                              
   |            |   | 1 byte (for NUL terminator)                                                                    
   |            |   4 bytes                                                                                          
   |            capacity: 4 bytes                                                                                    
zzz.c:1:6: note: destination declared here                                                                           
1 | char d[4];                                                                                                       
  |      ^                                                                                                           
zzz.c:21:12: warning: buffer overflow: ‘sprintf’ will write 6 bytes into a destination of size 4 [-Wformat-overflow=]
21 |   sprintf (d, "%iAB", 123);                                                                                     
   |            ^   ^~^~^                                                                                            
   |            |   | | |                                                                                            
   |            |   | | 1 byte (for NUL terminator)                                                                  
   |            |   | 2 bytes                                                                                        
   |            |   3 bytes                                                                                          
   |            capacity: 4 bytes                                                                                    
zzz.c:1:6: note: destination declared here                                                                           
1 | char d[4];                                                                                                       
  |      ^                                                                                                           
zzz.c:33:12: warning: buffer overflow: ‘sprintf’ will write 6 bytes into a destination of size 4 [-Wformat-overflow=]
33 |   sprintf (d, "%iAB", 123);                                                                                     
   |            ^   ^~^~^                                                                                            
   |            |   | | |                                                                                            
   |            |   | | 1 byte (for NUL terminator)                                                                  
   |            |   | 2 bytes                                                                                        
   |            |   3 bytes                                                                                          
   |            capacity: 4 bytes                                                                                    
zzz.c:1:6: note: destination declared here                                                                           
1 | char d[4];                                                                                                       
  |      ^                                                                                                           
zzz.c:37:12: warning: buffer overflow: ‘sprintf’ will write between 6 and 7 bytes into a destination of size 4 [-Wformat-overflow=]
37 |   sprintf (d, "%sAB", s);                                                                                                     
   |            ^   ^~^~^                                                                                                          
   |            |   | | |                                                                                                          
   |            |   | | 1 byte (for NUL terminator)                                                                                
   |            |   | 2 bytes                                                                                                      
   |            |   3...4 bytes                                                                                                    
   |            capacity: 4 bytes                                                                                                  
zzz.c:1:6: note: destination declared here                                                                                         
1 | char d[4];                                                                                                                     
  |      ^                                                                                                                         
zzz.c: In function ‘g’:                                                                                                            
zzz.c:46:12: warning: buffer overflow: ‘sprintf’ will write between 9 and 105 bytes into a destination of size 80 [-Wformat-overflow=]
46 |   sprintf (buf_10, "/%s/%s-%i.tmp", tmpdir, fname, num);                                                                         
   |            ^~~~~~   ^^~^^~^^~^~~~^                                                                                               
   |            |        || || || |   |                                                                                               
   |            |        || || || |   1 byte (for NUL terminator)                                                                     
   |            |        || || || 4 bytes                                                                                             
   |            |        || || |1...11 bytes                                                                                          
   |            |        || || 1 byte                                                                                                 
   |            |        || |0...7 bytes                                                                                              
   |            |        || 1 byte                                                                                                    
   |            |        |0...79 bytes                                                                                                
   |            |        1 byte                                                                                                       
   |            capacity: 80 bytes                                                                                                    
zzz.c:40:13: note: destination declared here                                                                                          
40 | extern char buf_10[80];                                                                                                          
   |             ^~~~~~