From 2f3ba7602b464882405cd844787391929baa36fb Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 2 Nov 2008 15:26:14 -0500 Subject: [PATCH] Corrected example code in the docs (thanks, Olivier!). --- CHANGELOG.txt | 3 ++- physfs.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 47815086..c391303a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,7 +3,8 @@ */ 11022008 - iPhone support (thanks, Christian!). Added struct typedefs that - are friendlier to predeclaring. + are friendlier to predeclaring and fixed example in docs (thanks, + Olivier!). 04032008 - Fixed PHYSFS_openAppend() to work as documented on Unix. 03122008 - Fixed aliasing bug in Windows platform layer (thanks, Dennis!). 03102008 - Changed some text files from ISO-8859-1 to UTF-8. Replaced all the diff --git a/physfs.h b/physfs.h index f33ac1f9..f441628b 100644 --- a/physfs.h +++ b/physfs.h @@ -531,7 +531,7 @@ __EXPORT__ int PHYSFS_deinit(void); * for (i = PHYSFS_supportedArchiveTypes(); *i != NULL; i++) * { * printf("Supported archive: [%s], which is [%s].\n", - * i->extension, i->description); + * (*i)->extension, (*i)->description); * } * \endcode *