Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix issue #7 - We now ignore dashes, as it's such a common format. Th…

…is may increase the false positives, but it'll reduce false negatives which to me seems to be more important.
  • Loading branch information...
commit 9b73844f7097904e6d6d51a63f1e775dd459aa8d 1 parent c12f346
@adamcaudill authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 ccsrch.c
View
5 ccsrch.c
@@ -316,10 +316,11 @@ int ccsrch(char *filename)
cardbuf[counter] = ((int)ccsrch_buf[ccsrch_index])-48;
counter++;
}
- else if ((ccsrch_buf[ccsrch_index] == 0) || (ccsrch_buf[ccsrch_index] == 10) || (ccsrch_buf[ccsrch_index] == 13))
+ else if ((ccsrch_buf[ccsrch_index] == 0) || (ccsrch_buf[ccsrch_index] == 10) ||
+ (ccsrch_buf[ccsrch_index] == 13) || (ccsrch_buf[ccsrch_index] == 45))
{
/*
- * we consider nulls, new lines, and carriage
+ * we consider dashes, nulls, new lines, and carriage
* returns to be noise, so ingore those
*/
check = 0;
Please sign in to comment.
Something went wrong with that request. Please try again.