[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: [PATCH] Re: What not to be doing - syscall()
From: Thiago Macieira <thiago.macieira () kdemail ! net>
Date: 2003-12-23 20:13:08
[Download RAW message or body]
Frans Englich wrote:
>+ const char *user = KUser().loginName().latin1();
I have a problem with that, in your last patch. The QString object the from
which you're getting the Latin1 is a temporary object and will be destroyed
shortly thereafter, so the variable will point to a deallocated pointer. Use
a QCString there for user or keep the QString around.
--
Thiago Macieira - Registered Linux user #65028
thiagom (AT) mail (dot) com
ICQ UIN: 1967141 PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic