fix gtk invite for sms

This commit is contained in:
Eric House 2022-08-26 12:07:43 -07:00
parent 4ba1b2418c
commit 2c80787f5c

View file

@ -129,6 +129,9 @@ handle_ok( GtkWidget* XP_UNUSED(widget), gpointer closure )
case COMMS_CONN_SMS:
txt = gtk_entry_get_text( GTK_ENTRY(state->smsport) );
state->addr->u.sms.port = atoi( txt );
txt = gtk_entry_get_text( GTK_ENTRY(state->smsphone) );
XP_STRNCPY( state->addr->u.sms.phone, txt,
sizeof(state->addr->u.sms.phone) );
break;
case COMMS_CONN_MQTT:
txt = gtk_entry_get_text( GTK_ENTRY(state->mqttDevID) );