summaryrefslogtreecommitdiffstats
path: root/src/file_sig.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-05-11 20:39:51 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-05-11 20:39:51 +0200
commit8c193e50d5e4fbc9a9fd218cc3cd54d74610445a (patch)
treefc8b33a9220a9ab0e3fdea0e951c7a0b809327f6 /src/file_sig.c
parent11d8739f78f1910f98dec73a944ee3a0382a5c9d (diff)
PhotoRec: handle several lines of comment in custom signature file
Diffstat (limited to 'src/file_sig.c')
-rw-r--r--src/file_sig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_sig.c b/src/file_sig.c
index c843e3b..e504494 100644
--- a/src/file_sig.c
+++ b/src/file_sig.c
@@ -190,8 +190,8 @@ static char *parse_signature_file(file_stat_t *file_stat, char *pos)
{
while(*pos!='\0')
{
- /* skip comment */
- if(*pos=='#')
+ /* skip comments */
+ while(*pos=='#')
{
while(*pos!='\0' && *pos!='\n')
pos++;