OSDN Git Service

2002-01-12 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / include / bits / locale_facets.tcc
index 35873e1..396f423 100644 (file)
@@ -1415,8 +1415,8 @@ namespace std
            }
 
          // Write resulting, fully-formatted string to output iterator.
-         for (size_type __j = 0; __j < __len; ++__j)
-           __s = __res[__j];
+         for (size_type __j = 0; __j < __len; ++__j, ++__s)
+           *__s = __res[__j];
        }
       __io.width(0);
       return __s;