comparison pidgin/win32/winpidgin.c @ 26857:f0874c392052

This is supposed to be a precision formatter.
author Daniel Atallah <daniel.atallah@gmail.com>
date Sat, 02 May 2009 18:05:49 +0000
parents daefbf001774
children 0506033e8d7c
comparison
equal deleted inserted replaced
26856:867e231bffbc 26857:f0874c392052
584 const char *err_msg = get_win32_error_message(dw); 584 const char *err_msg = get_win32_error_message(dw);
585 printf("Unable to open Pidgin process. (%u) %s\n", (UINT) dw, err_msg); 585 printf("Unable to open Pidgin process. (%u) %s\n", (UINT) dw, err_msg);
586 return; 586 return;
587 } 587 }
588 588
589 printf("Trying to handle protocol message:\n'%*s'\n", len, tmp1); 589 printf("Trying to handle protocol message:\n'%.*s'\n", len, tmp1);
590 590
591 /* MEM_COMMIT initializes the memory to zero, 591 /* MEM_COMMIT initializes the memory to zero,
592 * so we don't need to worry that our section of tmp1 isn't nul-terminated */ 592 * so we don't need to worry that our section of tmp1 isn't nul-terminated */
593 if ((remote_msg = (char*) VirtualAllocEx(process, NULL, len + 1, MEM_COMMIT, PAGE_READWRITE))) { 593 if ((remote_msg = (char*) VirtualAllocEx(process, NULL, len + 1, MEM_COMMIT, PAGE_READWRITE))) {
594 if (WriteProcessMemory(process, remote_msg, tmp1, len, &len_written)) { 594 if (WriteProcessMemory(process, remote_msg, tmp1, len, &len_written)) {