History log of /haiku/src/bin/fortune.c
Revision Date Author Comments
# 246caab5 05-Feb-2020 Ryan Leavengood <leavengood@gmail.com>

Fix build: missing semi-colon in fortune


# 40ee778c 12-Feb-2019 Rob Gill <rrobgill@protonmail.com>

Fix memory leaks

* Delete/free as appropriate

Most cases involve not freeing memory after encountering error or
unexpected situation (identified via cppcheck static analysis)

Change-Id: I90ba2fca518b00d2dfa9ec1ddbcebe1920a34b7c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1038
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# c5666be3 24-Jun-2015 Philippe Saint-Pierre <stpere@gmail.com>

CID 605799: Resource Leakage in fortune


# c6106a59 10-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* Fixed bug in "fortune" that would let it crash if you'd point it to an empty
directory.
* Moved fortune files to "data/system/data" in the repository, and /system/data/
in the file system.
* Got teapot.data location wrong in the repository.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33982 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3cb77ecf 30-Jan-2008 Axel Dörfler <axeld@pinc-software.de>

* Now checks if /etc/fortunes is a directory, and picks a random file out of
that. This fixes bug #1475.
* Now accepts file arguments (will pick a random one out of them) as fortune
sources.
* Minor cleanup and simplifications.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23788 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 338b8dc3 29-Oct-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Merged changes from branch build_system_redesign at revision 14573.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14574 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c5666be3b8f34f1a4d8f6e0c2d6258a624446f60 24-Jun-2015 Philippe Saint-Pierre <stpere@gmail.com>

CID 605799: Resource Leakage in fortune


# c6106a595d07b9456169a4953bb954dad7e7647b 10-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* Fixed bug in "fortune" that would let it crash if you'd point it to an empty
directory.
* Moved fortune files to "data/system/data" in the repository, and /system/data/
in the file system.
* Got teapot.data location wrong in the repository.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33982 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3cb77ecf339a2658f891f372d177ce9dc9ae8369 30-Jan-2008 Axel Dörfler <axeld@pinc-software.de>

* Now checks if /etc/fortunes is a directory, and picks a random file out of
that. This fixes bug #1475.
* Now accepts file arguments (will pick a random one out of them) as fortune
sources.
* Minor cleanup and simplifications.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23788 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 338b8dc301721b1f472e8297a898d4eaa2f2ee3a 29-Oct-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Merged changes from branch build_system_redesign at revision 14573.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14574 a95241bf-73f2-0310-859d-f6bbb57e9c96