You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
449 B

--- a/src/sigar_util.c
+++ b/src/sigar_util.c
@@ -954,14 +954,10 @@ int sigar_file2str(const char *fname, char *buffer, int buflen)
#define vsnprintf _vsnprintf
#endif
-#ifdef WIN32
-# define rindex strrchr
-#endif
-
static int proc_module_get_self(void *data, char *name, int len)
{
sigar_t *sigar = (sigar_t *)data;
- char *ptr = rindex(name, '/');
+ char *ptr = strrchr(name, '/');
if (!ptr) {
return SIGAR_OK;