]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/iotest/trnstst.c
ICU-62141.0.1.tar.gz
[apple/icu.git] / icuSources / test / iotest / trnstst.c
index 8f6101323f86f6281b2515d2f985154d339185b6..be32143e79e97cdc4c5fecdbd968a0214563425c 100644 (file)
@@ -1,12 +1,15 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
 **********************************************************************
-*   Copyright (C) 2005-2005, International Business Machines
+*   Copyright (C) 2005-2016, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 **********************************************************************
 *   file name:  strtst.c
 *   created by: George Rhoten
 */
 
+#include "cmemory.h"
 #include "iotest.h"
 #include "unicode/ustdio.h"
 #include "unicode/utrans.h"
@@ -229,7 +232,7 @@ static void TestTranslitStringOut(void)
 
     log_verbose("opening a transliterator and UFILE for testing\n");
 
-    f = u_fstropen(ubuf, sizeof(ubuf)/sizeof(ubuf[0]), "en_US_POSIX");
+    f = u_fstropen(ubuf, UPRV_LENGTHOF(ubuf), "en_US_POSIX");
     if(f == NULL)
     {
         log_err("Couldn't open test file for writing\n");