summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-07-08 07:49:23 +0000
committerAustin Yuan <shengquan.yuan@intel.com>2009-07-08 17:42:05 +0800
commit3b10124ce0a3ce533f65bf613cbb6ef340f90c42 (patch)
tree2d61dee31174b62769506180d25f3a563c164061
parent4f1b4898eb71b07397095fb22122182bc4f7191d (diff)
downloadlibva-3b10124ce0a3ce533f65bf613cbb6ef340f90c42.tar.gz
Fix tests.
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
-rw-r--r--test/test_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_common.c b/test/test_common.c
index 8a6ca9f..91774da 100644
--- a/test/test_common.c
+++ b/test/test_common.c
@@ -63,7 +63,7 @@ void status(const char *msg, ...)
int main(int argc, const char* argv[])
{
- const char *name = rindex(argv[0], '/');
+ const char *name = strrchr(argv[0], '/');
if (name)
name++;
else