From cba34fecc417ab0af63105226966ef9efc5b0eee Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Sun, 28 Dec 2003 20:24:19 +0000 Subject: [PATCH] fixed cloning accelerant git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5787 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/neomagic/InitAccelerant.c | 5 +++-- src/add-ons/accelerants/nvidia/InitAccelerant.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/add-ons/accelerants/neomagic/InitAccelerant.c b/src/add-ons/accelerants/neomagic/InitAccelerant.c index 3f1bc8a8a9..835ff65060 100644 --- a/src/add-ons/accelerants/neomagic/InitAccelerant.c +++ b/src/add-ons/accelerants/neomagic/InitAccelerant.c @@ -4,7 +4,7 @@ Other authors: Mark Watson, - Rudolf Cornelissen 10/2002-3/2003. + Rudolf Cornelissen 10/2002-12/2003. */ #define MODULE_BIT 0x00800000 @@ -248,7 +248,8 @@ status_t CLONE_ACCELERANT(void *data) { char path[MAXPATHLEN]; /* the data is the device name */ - strcpy(path, "/dev"); + /* Note: the R4 graphics driver kit is in error here (missing trailing '/') */ + strcpy(path, "/dev/"); strcat(path, (const char *)data); /* open the device, the permissions aren't important */ fd = open(path, B_READ_WRITE); diff --git a/src/add-ons/accelerants/nvidia/InitAccelerant.c b/src/add-ons/accelerants/nvidia/InitAccelerant.c index 3801d3e307..f929580682 100644 --- a/src/add-ons/accelerants/nvidia/InitAccelerant.c +++ b/src/add-ons/accelerants/nvidia/InitAccelerant.c @@ -4,7 +4,7 @@ Other authors: Mark Watson, - Rudolf Cornelissen 10/2002-7/2003. + Rudolf Cornelissen 10/2002-12/2003. */ #define MODULE_BIT 0x00800000 @@ -234,7 +234,8 @@ status_t CLONE_ACCELERANT(void *data) { char path[MAXPATHLEN]; /* the data is the device name */ - strcpy(path, "/dev"); + /* Note: the R4 graphics driver kit is in error here (missing trailing '/') */ + strcpy(path, "/dev/"); strcat(path, (const char *)data); /* open the device, the permissions aren't important */ fd = open(path, B_READ_WRITE);