1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-04-24 10:09:49 +02:00
Joshua Drake b7c3b14dd9 merge in another posix meterpreter update from philip, see
git-svn-id: file:///home/svn/framework3/trunk@10307 4d416f70-5f16-0410-b530-b9f4589650da
2010-09-13 14:44:00 +00:00

22 lines
503 B
C

#include "common.h"
#ifndef _WIN32
/*
* If we supply real_dprintf in the common.h, each .o file will have a private copy of that symbol.
* This leads to bloat. Defining it here means that there will only be a single implementation of it.
*/
void real_dprintf(char *format, ...)
{
va_list args;
char buffer[1024];
va_start(args, format);
vsnprintf(buffer, sizeof(buffer)-2, format, args);
strcat(buffer, "\n");
va_end(args);
write(2, buffer, strlen(buffer));
}
#endif