-#if defined (WIN32)
- str = malloc(1024);
- vsnprintf(str, 1024, error_string, ap);
-#else
- vasprintf(&str, error_string, ap);
-#endif
- rpc->error_string = str;
+ rpc->error_string = malloc(1024);
+ vsnprintf(rpc->error_string, 1024, error_string, ap);