bug-gplusplus
[Top][All Lists]
Advanced

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

Re: segmentation fault with g++


From: Eray Ozkural
Subject: Re: segmentation fault with g++
Date: Thu, 22 Feb 2001 01:01:34 +0200

Artak Avetyan wrote:
> 
> Hi
> 
> Some bugs are here:
> 
> LG_URLParser::LG_URLParser(const char* url)
> {
>         m_url           =   new char(256);
>                                ^^^^^^^^^^ use: m_url = new[256];
> 
> }
> 
> LG_URLParser::~LG_URLParser()
> {
>         delete m_url;
>          ^^^^^^^^^^^ use: delete [] m_url;
> }

so it's just that both the coding and the borland 4.0 compiler are
lousy. ;)


-- 
Eray (exa) Ozkural
Comp. Sci. Dept., Bilkent University, Ankara
e-mail: address@hidden
www: http://www.cs.bilkent.edu.tr/~erayo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]