From 905f29ebb386bcd2d5becd8d348f2d0bd000430f Mon Sep 17 00:00:00 2001 From: JP Roseveaer Date: Mon, 15 Jan 2001 14:04:29 +0000 Subject: Dup the string passed in, not the temporary string. d'oh. 2001-01-15 JP Roseveaer * e-pilot-util.c (e_pilot_utf8_from_pchar): Dup the string passed in, not the temporary string. d'oh. svn path=/trunk/; revision=7501 --- e-util/ChangeLog | 5 +++++ e-util/e-pilot-util.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 39e498066d..8307f2b29c 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,8 @@ +2001-01-15 JP Roseveaer + + * e-pilot-util.c (e_pilot_utf8_from_pchar): Dup the string passed + in, not the temporary string. d'oh. + 2001-01-04 Dan Winship * e-msgport.c: #define E_THREAD_NONE as ((pthread_t)~0) and use diff --git a/e-util/e-pilot-util.c b/e-util/e-pilot-util.c index 58c6937b8c..0f91f48e3a 100644 --- a/e-util/e-pilot-util.c +++ b/e-util/e-pilot-util.c @@ -56,7 +56,7 @@ e_pilot_utf8_from_pchar (const char *string) res = convert_FromPilotChar ("UTF8", string, strlen (string), &ustring); if (res != 0) - ustring = strdup (ustring); + ustring = strdup (string); return ustring; } -- cgit