"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/interfaces/gtk/ec_gtk_conf.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_conf.c  (ettercap-0.8.3):ec_gtk_conf.c  (ettercap-0.8.3.1)
skipping to change at line 81 skipping to change at line 81
fd = fopen(filename, "r"); fd = fopen(filename, "r");
if(!fd) if(!fd)
return; return;
while(fgets(line, 100, fd)) { while(fgets(line, 100, fd)) {
char *p = strchr(line, '='); char *p = strchr(line, '=');
if(!p) if(!p)
continue; continue;
*p = '\0'; *p = '\0';
snprintf(name, sizeof(name), "%s", line); strlcpy(name, line, sizeof(name));
strlcpy(name, line, sizeof(name) - 1);
g_strstrip(name); g_strstrip(name);
value = atoi(p + 1); value = atoi(p + 1);
gtkui_conf_set(name, value); gtkui_conf_set(name, value);
} }
fclose(fd); fclose(fd);
} }
void gtkui_conf_save(void) { void gtkui_conf_save(void) {
FILE *fd; FILE *fd;
int c; int c;
 End of changes. 1 change blocks. 
2 lines changed or deleted 1 lines changed or added

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