--- src/monalisawsclient.cxx_orig 2009-01-07 11:36:39.835065000 +0100 +++ src/monalisawsclient.cxx 2009-01-07 11:45:14.980548000 +0100 @@ -32,8 +32,14 @@ for(int i=0;i__size;i++) { ns3__Result *results = resp2._getValuesReturn->__ptr[i]; time_t epochtime = static_cast (results->time/1000); - char tstr[24]; - ctime_r(&epochtime,tstr); tstr[24]='\0'; + char tstr[30]; +#if defined __sun && !defined __sun__ // CC compiler suite on solaris + ctime_r(&epochtime, tstr, strlen(tstr)); + tstr[30]='\0'; +#else + ctime_r(&epochtime,tstr); + tstr[30]='\0'; +#endif if (debug) { printf("farm: %s\n |----cluster: %s\n |----node: %s (time: %lld ms = %s)\n", results->farmName->c_str(),results->clusterName->c_str(),results->nodeName->c_str(), @@ -80,8 +86,14 @@ for(int i=0;i__size;i++) { ns3__Result *results = resp2._getFilteredLastValuesReturn->__ptr[i]; time_t epochtime = static_cast (results->time/1000); - char tstr[24]; - ctime_r(&epochtime,tstr); tstr[24]='\0'; + char tstr[30]; +#if defined __sun && !defined __sun__ // CC compiler suite on solaris + ctime_r(&epochtime, tstr, strlen(tstr)); + tstr[30]='\0'; +#else + ctime_r(&epochtime,tstr); + tstr[30]='\0'; +#endif if (debug) { printf("farm: %s\n |----cluster: %s\n |----node: %s (time: %lld ms = %s)\n", results->farmName->c_str(),results->clusterName->c_str(),results->nodeName->c_str(),