Testsuite: fix 0903
[users/jgh/exim.git] / src / src / readconf.c
index 46dc7ced2939b33158dbd5b569616cd07b479e93..21328bd3a7ed3659c7c51db2cce5761ea8b89728 100644 (file)
@@ -1178,6 +1178,7 @@ for (;;)
         int offset = 0;
         int size = 0;
         ss = string_append(NULL, &size, &offset, 3, config_directory, "/", ss);
+        ss[offset] = '\0';  /* string_append() does not zero terminate the string! */
         }
 
     if (include_if_exists != 0 && (Ustat(ss, &statbuf) != 0)) continue;