"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/interfaces/gtk/ec_gtk_view.c" between
ettercap-0.8.3.tar.gz and ettercap-0.8.3.1.tar.gz

About: ettercap is a multipurpose sniffer/interceptor/logger for switched LAN.

ec_gtk_view.c  (ettercap-0.8.3):ec_gtk_view.c  (ettercap-0.8.3.1)
skipping to change at line 464 skipping to change at line 464
active++; active++;
if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (curr->data))) if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (curr->data)))
break; break;
} }
/* set vmethod string */ /* set vmethod string */
int i=0; int i=0;
memset(vmethod, 0, VLEN); memset(vmethod, 0, VLEN);
switch(active) { switch(active) {
case 6: strncpy(vmethod, "hex", 3); break; case 6: strncpy(vmethod, "hex", 4); break;
case 5: strncpy(vmethod, "ascii", 5); break; case 5: strncpy(vmethod, "ascii", 6); break;
case 4: strncpy(vmethod, "text", 4); break; case 4: strncpy(vmethod, "text", 5); break;
case 3: strncpy(vmethod, "ebcdic", 6); break; case 3: strncpy(vmethod, "ebcdic", 7); break;
case 2: strncpy(vmethod, "html", 4); break; case 2: strncpy(vmethod, "html", 5); break;
case 1: /* utf8 */ case 1: /* utf8 */
/* copy first word from encoding choice */ /* copy first word from encoding choice */
gtk_combo_box_get_active_iter(GTK_COMBO_BOX(lang_combo), &iter); gtk_combo_box_get_active_iter(GTK_COMBO_BOX(lang_combo), &iter);
model = gtk_combo_box_get_model(GTK_COMBO_BOX(lang_combo)); model = gtk_combo_box_get_model(GTK_COMBO_BOX(lang_combo));
gtk_tree_model_get(model, &iter, 0, &selected_lang, -1); gtk_tree_model_get(model, &iter, 0, &selected_lang, -1);
i=sscanf(selected_lang, "%[^ ]", encoding); i=sscanf(selected_lang, "%[^ ]", encoding);
BUG_IF(i!=1); BUG_IF(i!=1);
if(strlen(encoding) > 0) { if(strlen(encoding) > 0) {
strncpy(vmethod, "utf8", 4); strncpy(vmethod, "utf8", 4);
set_utf8_encoding(encoding); set_utf8_encoding(encoding);
 End of changes. 1 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)