Fixed cloning accelerants

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15691 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2005-12-28 08:40:34 +00:00
parent 9980540b63
commit e94a459785
2 changed files with 2 additions and 2 deletions
@@ -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);