]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/samples/msgfmt/util.cpp
ICU-59152.0.1.tar.gz
[apple/icu.git] / icuSources / samples / msgfmt / util.cpp
index 25a8f0224d433babab52ba3648162c0eb7bb8e18..fb353a0136419bdd59745f91bfc8b2c277956017 100644 (file)
@@ -1,8 +1,12 @@
-/********************************************************************
+/**********************************************************************
+ * © 2016 and later: Unicode, Inc. and others.
+ * License & terms of use: http://www.unicode.org/copyright.html#License
+ ***********************************************************************
+ ***********************************************************************
  * COPYRIGHT:
- * Copyright (c) 1999-2002, International Business Machines Corporation and
+ * Copyright (c) 1999-2010, International Business Machines Corporation and
  * others. All Rights Reserved.
- ********************************************************************/
+ ***********************************************************************/
 
 #include "unicode/unistr.h"
 #include <stdio.h>
@@ -59,5 +63,5 @@ void uprintf(const UnicodeString &str) {
     actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion
     buf[actualLen] = 0;
     printf("%s", buf);
-    delete buf;
+    delete [] buf;
 }