patch -- bug 811


Subject: patch -- bug 811
From: sam th (sam@bur-jud-118-039.rh.uchicago.edu)
Date: Mon Apr 10 2000 - 15:53:30 CDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bug 811 as follows
<quote>
rc/af/xap/unix/xap_UnixDlg_FileOpenSaveAs.cpp uses obsolete "rindex()" in
three places. It should be recoded to use the equivalent ANSI "strrchr()"
function. If needed for some broken platform out there, you could have
your configuration utility do something like this:

#ifdef NEED_STRRCHR
#define strrchr rindex
#endif
</quote>

rindex() is a BSD 4.3 function, implemented on (at least my ) Linux
systems. srrrchr() is a POSIX, BSD 4.3, SVID3, ISO 9899 function.
Therefore, there should be no platforms that support rindex() that do not
support strrchr().

The attached patch makes the changes.

           
                                     sam th
                                     sytobinh@uchicago.edu
                                http://bur-jud-118-039.rh.uchicago.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE48j9Lt+kM0Mq9M/wRAiCxAKDb8Y1F8/sDhlCA3a5Oa4uh4NacjACeLAeu
ws3kKlqIRZODojMca/B+hhk=
=Kmz7
-----END PGP SIGNATURE-----




This archive was generated by hypermail 2b25 : Mon Apr 10 2000 - 15:54:04 CDT