Replace strchr() with strrchr()
authorhartwick <hartwick>
Wed, 18 Oct 2000 15:04:08 +0000 (15:04 +0000)
committerhartwick <hartwick>
Wed, 18 Oct 2000 15:04:08 +0000 (15:04 +0000)
src/modules/rlm_detail/rlm_detail.c

index 3d8a777..1487b25 100644 (file)
@@ -134,7 +134,7 @@ static int detail_accounting(void *instance, REQUEST *request)
         *      variables.
         */
        strNcpy(filename, inst->detailfile, sizeof(filename));
-       p = strchr(filename,'/');
+       p = strrchr(filename,'/');
 
        if (p) *p = '\0';