Imported Upstream version 58.1
[platform/upstream/icu.git] / source / io / ustdio.c
index 6b4d03c..1c2225a 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
  ******************************************************************************
  *
@@ -428,7 +430,7 @@ ufile_fill_uchar_buffer(UFILE *f)
 
     /* shift the buffer if it isn't empty */
     if(dataSize != 0) {
-        uprv_memmove(f->fUCBuffer, str->fPos, dataSize * sizeof(UChar)); /* not accessing beyond memory */
+        u_memmove(f->fUCBuffer, str->fPos, dataSize); /* not accessing beyond memory */
     }