! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
strptime() needs _XOPEN_SOURCE_EXTENDED to be defined
Status:
CLOSED: FIXED

Comments

Description Landry Breuil editbugs 2012-08-26 22:41:52 CEST
on posix systems like openbsd, just including time.h isnt enough to get a proper strptime() declaration, you need _XOPEN_SOURCE to be defined, but also #define _XOPEN_SOURCE_EXTENDED 1. Otherwise the definition isnt complete, and it ends up defaulting to returning an int hence leading to crashes.

See http://www.openbsd.org/cgi-bin/cvsweb/ports/x11/xfce4/orage/patches/patch-src_functions_c?rev=1.1;content-type=text%2Fplain
Comment 1 juha editbugs 2012-08-27 10:10:27 CEST
ok. I have that in some of the c files already. looks good. thanks for the fix.
Comment 2 juha editbugs 2013-01-28 12:36:00 CET
Fixed in Git 4.8.3.4
Comment 3 juha editbugs 2013-02-01 13:35:49 CET
Available in Orage 4.8.4.

Bug #9243

Reported by:
Landry Breuil
Reported on: 2012-08-26
Last modified on: 2013-02-01

People

CC List:
0 users

Version

Attachments

Additional information