[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#46550: #46550 has re-appeared



Richard Kettlewell writes:
> This bug has reappeared at some point in the intervening years (in
> libstdc++2.10-dev 2.95.4-11woody now).
> 
> Here's a patch to /usr/include/g++-3/std/bastring.h to put it back
> right again.
> 
> ttfn/rjk

Sorry, stupid me, it should be:-

--- bastring.h.orig	Sun Jun  8 22:47:05 2003
+++ bastring.h	Sun Jun  8 22:47:11 2003
@@ -335,7 +335,7 @@
 
 public:
   const charT* c_str () const
-    { const charT* null_str = ""; 
+    { static const charT null_str[1];
       if (length () == 0) return null_str; terminate (); return data (); }
   void resize (size_type n, charT c);
   void resize (size_type n)



Reply to: