]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/memmove.c
ncurses 5.7 - patch 20090221
[ncurses.git] / ncurses / base / memmove.c
index 4fafc4cda9d89c56824ea32c9a9e2cbd5312b4c0..093ad72954ff280bddfa628f7a5b1a0c2fc7f750 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998,2000 Free Software Foundation, Inc.                   *
+ * Copyright (c) 1998-2000,2007 Free Software Foundation, Inc.              *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -28,7 +28,7 @@
 
 #include <curses.priv.h>
 
-MODULE_ID("$Id: memmove.c,v 1.4 2000/12/10 02:43:28 tom Exp $")
+MODULE_ID("$Id: memmove.c,v 1.5 2007/08/11 17:12:43 tom Exp $")
 
 /****************************************************************************
  *  Author: Thomas E. Dickey <dickey@clark.net> 1998                        *
@@ -51,7 +51,7 @@ _nc_memmove(void *s1, const void *s2, size_t n)
            }
            for (j = 0; j < n; j++)
                bfr[j] = SRC[j];
-           SRC = bfr;
+           s2 = bfr;
        }
        while (n-- != 0)
            DST[n] = SRC[n];