+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
-* Copyright (C) 1998-2014, International Business Machines Corporation
+* Copyright (C) 1998-2016, International Business Machines Corporation
* and others. All Rights Reserved.
**********************************************************************
*
#include "unicode/uwmsg.h"
#include "unicode/ures.h"
#include "unicode/putil.h"
+#include "cmemory.h"
#include "cstring.h"
#include <stdlib.h>
}
#if UCONFIG_NO_FORMATTING
- resultLength = sizeof(gNoFormatting) / U_SIZEOF_UCHAR;
+ resultLength = UPRV_LENGTHOF(gNoFormatting);
if((msgLen + resultLength) <= UPRV_LENGTHOF(result)) {
memcpy(result, msg, msgLen * U_SIZEOF_UCHAR);
memcpy(result + msgLen, gNoFormatting, resultLength);