put directory path into single quotes

This commit is contained in:
Andreas Steffen
2009-11-04 14:34:14 +01:00
parent efab9f551d
commit bed19335b8
+2 -2
View File
@@ -132,7 +132,7 @@ enumerator_t* enumerator_create_directory(char *path)
len = snprintf(this->full, sizeof(this->full)-1, "%s", path);
if (len < 0 || len >= sizeof(this->full)-1)
{
DBG1("path string %s too long", path);
DBG1("path string '%s' too long", path);
free(this);
return NULL;
}
@@ -147,7 +147,7 @@ enumerator_t* enumerator_create_directory(char *path)
this->dir = opendir(path);
if (this->dir == NULL)
{
DBG1("opening directory %s failed: %s", path, strerror(errno));
DBG1("opening directory '%s' failed: %s", path, strerror(errno));
free(this);
return NULL;
}