Skip to content

Commit 7f8d4c4

Browse files
committed
Fix another memcpy bug.
1 parent 7629f79 commit 7f8d4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

path.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ spherepath_add_point(PG_FUNCTION_ARGS)
10221022

10231023
size = offsetof(SPATH, p[0]) +sizeof(SPoint) * (path->npts + 1);
10241024
path_new = palloc(size);
1025-
memcpy((void *) path, (void *) path_new, VARSIZE(path));
1025+
memcpy((void *) path_new, (void *) path, VARSIZE(path));
10261026
path_new->npts++;
10271027

10281028
#if PG_VERSION_NUM < 80300

0 commit comments

Comments
 (0)