Fixed cloning accelerants
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15691 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -318,7 +318,7 @@ status_t CLONE_ACCELERANT(void *data) {
|
||||
char path[MAXPATHLEN];
|
||||
|
||||
/* the data is the device name */
|
||||
strcpy(path, "/dev");
|
||||
strcpy(path, "/dev/");
|
||||
strcat(path, (const char *)data);
|
||||
/* open the device, the permissions aren't important */
|
||||
fd = open(path, B_READ_WRITE);
|
||||
|
||||
@@ -164,7 +164,7 @@ status_t result;
|
||||
char path[MAXPATHLEN];
|
||||
|
||||
/* the data is the device name */
|
||||
strcpy(path, "/dev");
|
||||
strcpy(path, "/dev/");
|
||||
strcat(path, (const char *)data);
|
||||
/* open the device, the permissions aren't important */
|
||||
fd = open(path, B_READ_WRITE);
|
||||
|
||||
Reference in New Issue
Block a user