mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-07 09:04:05 +00:00
error messages
This commit is contained in:
parent
cfd444f361
commit
24d027e0b7
2
lsyncd.c
2
lsyncd.c
@ -841,10 +841,12 @@ bool buildpath(char *pathname,
|
||||
{
|
||||
int len = builddir(pathname, pathsize, watch, prefix);
|
||||
if (len < 0) {
|
||||
printlogf(LOG_ERROR, "path too long!");
|
||||
return false;
|
||||
}
|
||||
if (dirname) {
|
||||
if (pathsize < len + strlen(dirname) + 1) {
|
||||
printlogf(LOG_ERROR, "path too long!");
|
||||
return false;
|
||||
}
|
||||
strcat(pathname, dirname);
|
||||
|
Loading…
Reference in New Issue
Block a user