Dup the string passed in, not the temporary string. d'oh.
2001-01-15 JP Roseveaer <jpr@ximian.com> * 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
This commit is contained in:
committed by
JP Rosevear
parent
d3a4ca8979
commit
905f29ebb3
@ -1,3 +1,8 @@
|
||||
2001-01-15 JP Roseveaer <jpr@ximian.com>
|
||||
|
||||
* 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 <danw@helixcode.com>
|
||||
|
||||
* e-msgport.c: #define E_THREAD_NONE as ((pthread_t)~0) and use
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user