From f3f46fc1268597314ca34db32a1b45daa670edb3 Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Tue, 1 Jul 2008 09:38:20 +0000 Subject: [PATCH] Minor fix to the filename reading logic. Almost done! --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402322 --- tools/daemon/smud_connections.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/daemon/smud_connections.cpp b/tools/daemon/smud_connections.cpp index 80316bd7..52f38904 100644 --- a/tools/daemon/smud_connections.cpp +++ b/tools/daemon/smud_connections.cpp @@ -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);