From 038c92026a1222d204dcf1b85e5f349eb24f34d5 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 9 Feb 2006 17:03:07 +0000 Subject: Let's stop using that deadly to_charp() that gives a static char[]! It's dangerous. --- include/BString.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/BString.h b/include/BString.h index e9b0270..2caebb3 100644 --- a/include/BString.h +++ b/include/BString.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: BString.h,v 1.13 2006-01-31 17:02:38 pixel Exp $ */ +/* $Id: BString.h,v 1.14 2006-02-09 17:03:07 pixel Exp $ */ #ifndef __STRING_H__ #define __STRING_H__ @@ -49,7 +49,7 @@ class String : public Base { const char * set(const ugly_string &, ...); int scanf(const char *, ...) const; int scanf(const ugly_string &, ...) const; - const char * to_charp(size_t = 0, ssize_t = -1) const; + const char * to_charp(size_t = 0, ssize_t = -1) const throw (GeneralException); String extract(size_t = 0, ssize_t = -1) const; char * strdup(size_t = 0, ssize_t = -1) const; int to_int() const; -- cgit v1.2.3