diff options
author | fcolin | 2005-07-26 14:05:44 +0000 |
---|---|---|
committer | fcolin | 2005-07-26 14:05:44 +0000 |
commit | eadd80325fe2f74a0eedf88b68cc43b2bcb0c915 (patch) | |
tree | 6015230737ae5482c5b8dfc048aede402b645008 /src/ivyprobe.c | |
parent | fb6aa032cf84f543234534cd2c24102eb730bbc4 (diff) | |
download | ivy-c-eadd80325fe2f74a0eedf88b68cc43b2bcb0c915.zip ivy-c-eadd80325fe2f74a0eedf88b68cc43b2bcb0c915.tar.gz ivy-c-eadd80325fe2f74a0eedf88b68cc43b2bcb0c915.tar.bz2 ivy-c-eadd80325fe2f74a0eedf88b68cc43b2bcb0c915.tar.xz |
compile Windows
Diffstat (limited to 'src/ivyprobe.c')
-rw-r--r-- | src/ivyprobe.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ivyprobe.c b/src/ivyprobe.c index 8143706..86ee653 100644 --- a/src/ivyprobe.c +++ b/src/ivyprobe.c @@ -35,8 +35,9 @@ #ifdef WIN32 #include <windows.h> #ifdef __MINGW32__ -#include <regex.h> #include <getopt.h> +#else +#include "getopt.h" #endif // __MINGW32__ #else // WIN32 #include <sys/time.h> @@ -71,8 +72,8 @@ int fbindcallback = 0; void DirectCallback(IvyClientPtr app, void *user_data, int id, int len, void *msg ) { - printf("%s sent a direct message, id=%d, message=%s\n", - IvyGetApplicationName(app),id,(char*)msg); + printf("%s sent a direct message, id=%d, message=%.*s\n", + IvyGetApplicationName(app),id,len,(char*)msg); } void BindCallback(IvyClientPtr app, void *user_data, IvyBindEvent event, char *regexp ) |