*
**********************************************************************
* $Log$
+ * Revision 1.34 2003/12/12 14:39:04 strk
+ * Fixed a bug in make_line allocating less memory then required
+ *
* Revision 1.33 2003/12/12 12:03:30 strk
* More debugging output, some code cleanup.
*
{
LINE3D *result;
- *size = sizeof(LINE3D) + (npoints-1)*sizeof(POINT3D);
+ *size = sizeof(LINE3D) + (npoints)*sizeof(POINT3D);
result= (LINE3D *) palloc (*size);