From: SourceForge.net <no...@so...> - 2011-01-31 08:29:35
|
Bugs item #3167842, was opened at 2011-01-30 01:10 Message generated for change (Comment added) made by avpak You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=532251&aid=3167842&group_id=71730 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: HPI Clients Group: 2.17.x Status: Open Resolution: None Priority: 5 Private: No Submitted By: Anton Pak (avpak) Assigned to: Ulich Kleber (ulikleber) Summary: strnlen function is not cross-platform Initial Comment: File: clients/clients.c Function: ohc_option_parse Seems not all compilers support this function (at least Mingw with gcc-3.2 doesn't). ---------------------------------------------------------------------- >Comment By: Anton Pak (avpak) Date: 2011-01-31 11:29 Message: More simple way is to replace line (strnlen(optep,1) > 0); with (optep[0] != '\0'); ---------------------------------------------------------------------- Comment By: Ulich Kleber (ulikleber) Date: 2011-01-31 11:24 Message: Patch moves from strnlen to strlen. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=532251&aid=3167842&group_id=71730 |