Trim \n at the end of dictionary inputs
diff --git a/files.c b/files.c
index 1d37170..2d0e2b8 100644
--- a/files.c
+++ b/files.c
@@ -279,6 +279,10 @@
         if (getdelim(&lineptr, &n, '\n', fDict) == -1) {
             break;
         }
+        size_t len = strlen(lineptr);
+        if (len > 1 && lineptr[len - 1] == '\n') {
+            lineptr[len - 1] = '\0';
+        }
         if ((hfuzz->dictionary =
              util_Realloc(hfuzz->dictionary,
                           (hfuzz->dictionaryCnt + 1) * sizeof(hfuzz->dictionary[0]))) == NULL) {