Fabrice Fontaine
c40d2bc0c9
Remove more implicit casts in upnp part
...
Remove more "implicit integer or enum conversions" errors as well as
dead code.
2012-03-11 22:45:10 +01:00
Yoichi NAKAYAMA
194397b6d6
Handle allocation error in strndup to avoid access violation.
...
Return NULL before calling strncpy.
Platforms with HAVE_STRNDUP are not affected.
2012-03-10 23:15:37 +09:00
Iain Denniston
92ea719804
Fixes for compilation under Windows (specifically MSVC). Also added MSVC supported "_inline", and fixed some WIN32 specific warnings.
2011-04-02 23:47:00 -03:00
Chandra Penke
f46683fd0e
Fix for typo in strndup() function definition.
2011-01-17 09:03:34 -02:00
Marcelo Roberto Jimenez
541679d651
Use config.h to test for the availability of strndup() and strnlen().
2011-01-16 21:05:07 -02:00
Marcelo Roberto Jimenez
189ce59dbe
Null termination of strndup() implementation on systems missing it.
...
Also, implementation of strnlen() on systems missing it.
2011-01-14 22:05:22 -02:00
Marcelo Roberto Jimenez
5d6bcabd45
Removes C++ style comments.
2010-11-16 03:14:12 -02:00
Stefan Sommerfeld
38d5e58e22
Add a simple strndup() implementation for win32.
2010-11-07 18:31:48 -02:00
Stefan Sommerfeld
ee5bd670d4
Fix for size_t in UpnpString.
2010-11-07 18:31:48 -02:00
Marcelo Roberto Jimenez
f3ae1b4116
Added UpnpString_cmp() and UpnpString_casecmp() methods to UpnpString.
...
UpnpString_set_String() and UpnpString_set_StringN now return error values.
String lenghts are size_t.
(cherry picked from commit 81b28fbb9073b8b3ea5724e5b7c11b29c44f9be4)
2010-09-12 00:35:31 -03:00
Marcelo Roberto Jimenez
dc457414d1
Adding UpnpString.
...
git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/branches/branch-1.6.x@537 119443c7-1b9e-41f8-b6fc-b9c35fce742c
2010-04-25 00:44:34 +00:00