diff --git a/ChangeLog b/ChangeLog
index 35ed5e59b..fe5e57d23 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-02-10 Paolo Nenzi
+
+ * src/frontend/inpcom.c: Applied patch from Dietmar Warning
+ to solve the bug discovered by Jelle Haandrikman: wrong
+ subcircuit expansion when leading spaces are present in the
+ subcircuit netlist.
+
2004-01-28 Paolo Nenzi
* configure.in: changed version to rework15.
diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c
index aa1159bfa..bf6a4542d 100644
--- a/src/frontend/inpcom.c
+++ b/src/frontend/inpcom.c
@@ -56,7 +56,7 @@ readline(FILE *fd)
strptr = tmalloc(memlen);
memlen -= 1; /* Save constant -1's in while loop */
while((c = getc(fd)) != EOF) {
- if (strlen == 0 && c == '\n')
+ if (strlen == 0 && (c == '\n' || c == ' ')) /* Leading spaces away */
continue;
strptr[strlen] = c;
strlen++;