Re: add text to entry fails. g_snprintf bad?
- From: Sven Neumann <sven gimp org>
- To: edward hage <edha xs4all nl>
- Cc: gtk-list gnome org
- Subject: Re: add text to entry fails. g_snprintf bad?
- Date: 09 Jun 2004 22:06:18 +0200
Hi,
edward hage <edha xs4all nl> writes:
> gchar *labeltext1;
>
> g_snprintf(labeltext1, 6, "%f", sim.stepsize);
>
> g_free(labeltext1);
I suggest you read the snprintf() manpage. You are using g_snprintf()
on unallocated memory and later you even free the memory that has
never before been allocated.
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]