dtinfo subdirectory dtinfogen

This commit is contained in:
Ulrich Wilkens
2013-08-28 20:07:21 +02:00
committed by Jon Trulson
parent aef2830df2
commit eb698f32cf
43 changed files with 1074 additions and 895 deletions

View File

@@ -97,15 +97,16 @@ SearchStorage::SearchStorage( const char *path, const char *name )
makedir(path);
}
filteredPath = new char [ strlen(path) + 1 + strlen("filtered") + 1 ];
int pathlen = strlen(path) + 1 + strlen("filtered") + 1;
filteredPath = new char [pathlen];
/*
* throw(ResourceExhausted)
*
*/
assert ( filteredPath != NULL );
sprintf( filteredPath, "%s/filtered", path );
snprintf( filteredPath, pathlen, "%s/filtered", path );
if ( !isdir(filteredPath) ) {
makedir(filteredPath);
}