mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Fix possible crash in nickname code
Silly typo, but this is the better solution, anyway. Reported-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>` Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									713a4fcff6
								
							
						
					
					
						commit
						371ace39b5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -2091,7 +2091,7 @@ void set_dc_nickname(struct dive *dive) | |||
| 		entry = gtk_entry_new(); | ||||
| 		gtk_container_add(GTK_CONTAINER(frame), entry); | ||||
| 		gtk_entry_set_max_length(GTK_ENTRY(entry), 68); | ||||
| 		snprintf(nickname, 69, "%s (%08x)", dive->dc.model, dive->dc.deviceid); | ||||
| 		snprintf(nickname, sizeof(nickname), "%s (%08x)", dive->dc.model, dive->dc.deviceid); | ||||
| 		gtk_entry_set_text(GTK_ENTRY(entry), nickname); | ||||
| 		gtk_widget_show_all(dialog); | ||||
| 		if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue