mirror of
https://github.com/simon987/sist2.git
synced 2025-04-19 18:26:43 +00:00
Fix for #29
This commit is contained in:
parent
d83fc2c373
commit
565ba6ee76
@ -259,8 +259,10 @@ char *abspath(const char *path) {
|
|||||||
if (abs == NULL) {
|
if (abs == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
if (strlen(abs) > 1) {
|
||||||
abs = realloc(abs, strlen(abs) + 2);
|
abs = realloc(abs, strlen(abs) + 2);
|
||||||
strcat(abs, "/");
|
strcat(abs, "/");
|
||||||
|
}
|
||||||
|
|
||||||
wordfree(&w);
|
wordfree(&w);
|
||||||
return abs;
|
return abs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user