diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2012-01-03 18:51:58 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2012-01-03 18:51:58 +0000 |
| commit | b3608ae18f1e5598bed81d0a10dd585a5080c40d (patch) | |
| tree | b751618c7a82d9c00cab91ea9f611585dbf14d84 /lib/libcam/camlib.c | |
| parent | 69ee3e2f52eb8cba6e103cd1de3f91a7ffe1ddc7 (diff) | |
Notes
Diffstat (limited to 'lib/libcam/camlib.c')
| -rw-r--r-- | lib/libcam/camlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcam/camlib.c b/lib/libcam/camlib.c index 47ca384f6e97..525ad2fc653f 100644 --- a/lib/libcam/camlib.c +++ b/lib/libcam/camlib.c @@ -137,7 +137,7 @@ cam_get_device(const char *path, char *dev_name, int devnamelen, int *unit) */ if (*tmpstr == '/') { tmpstr2 = tmpstr; - tmpstr = (char *)rindex(tmpstr2, '/'); + tmpstr = strrchr(tmpstr2, '/'); if ((tmpstr != NULL) && (*tmpstr != '\0')) tmpstr++; } |
