"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ec_debug.c" between
ettercap-0.8.3.tar.gz and ettercap-

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

ec_debug.c  (ettercap-0.8.3):ec_debug.c  (ettercap-
skipping to change at line 142 skipping to change at line 142
{ {
va_list ap; va_list ap;
char debug_message[strlen(message)+2]; char debug_message[strlen(message)+2];
/* if it was closed by another thread on exit */ /* if it was closed by another thread on exit */
if (debug_file == NULL) if (debug_file == NULL)
return; return;
fprintf(debug_file, "[%9s]\t", ec_thread_getname(EC_PTHREAD_SELF)); fprintf(debug_file, "[%9s]\t", ec_thread_getname(ec_thread_getpid(NULL)));
strlcpy(debug_message, message, sizeof(debug_message)); strlcpy(debug_message, message, sizeof(debug_message));
strlcat(debug_message, "\n", sizeof(debug_message)); strlcat(debug_message, "\n", sizeof(debug_message));
va_start(ap, message); va_start(ap, message);
vfprintf(debug_file, debug_message, ap); vfprintf(debug_file, debug_message, ap);
va_end(ap); va_end(ap);
fflush(debug_file); fflush(debug_file);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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