Index: /trunk/psLib/src/math/psVectorSmooth.c
===================================================================
--- /trunk/psLib/src/math/psVectorSmooth.c	(revision 13918)
+++ /trunk/psLib/src/math/psVectorSmooth.c	(revision 13919)
@@ -27,4 +27,9 @@
     PS_ASSERT_FLOAT_LARGER_THAN(sigma, 0.0, NULL);
     PS_ASSERT_FLOAT_LARGER_THAN(Nsigma, 0.0, NULL);
+
+    if (output == input) {
+        psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Cannot smooth vector in-place.");
+        return false;
+    }
 
     // relevant terms
@@ -118,4 +123,9 @@
     PS_ASSERT_INT_POSITIVE(size, NULL);
 
+    if (output == input) {
+        psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Cannot smooth vector in-place.");
+        return false;
+    }
+
     long num = input->n;                // Number of elements
     output = psVectorRecycle(output, num, input->type.type);
