Fix TEMPORARY bug and add regression test.
[pspp-builds.git] / src / pool.c
index 336671e2bcd6b84c868f380e95608dbc76ad47b8..0123a8b955ed18c5190aa502aba9448130703653 100644 (file)
@@ -302,6 +302,8 @@ pool_strndup (struct pool *pool, const char *string, size_t length)
         copy = ((char *) b) + b->ofs;
         b->ofs += size;
       }
+    else
+      copy = pool_alloc (pool, size);
   }
 #else
   copy = pool_alloc (pool, size);