Minor fix to the filename reading logic. Almost done!
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402322
This commit is contained in:
parent
3cff457c6d
commit
f3f46fc126
@ -288,12 +288,14 @@ MD5Status ConnectionPool::GetMD5UpdateStatus( const char *md5 , smud_connection
|
||||
while (filename[0] == '\n')
|
||||
{
|
||||
fgets(filename, sizeof(filename), file);
|
||||
if (filename[strlen(filename)-1] == '\n')
|
||||
{
|
||||
filename[strlen(filename)-1] = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
if (filename[strlen(filename)-1] == '\n')
|
||||
{
|
||||
filename[strlen(filename)-1] = '\0';
|
||||
}
|
||||
|
||||
|
||||
|
||||
printf("Filename is %s\n", filename);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user