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:06:30 +0800
commitff089d968ae84887a25862819a5728477c3ea222 (patch)
tree385096ba67518e0815d5c03b69efd451a2f0d36f
parent9dbd7306bb1ece936ee8c820229183ccd572e6c4 (diff)
downloadlibva-ff089d968ae84887a25862819a5728477c3ea222.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