Software / code / prosody
Comparison
util-src/encodings.c @ 473:22b0e654c4cf
To use free you should include stdlib.h rather than malloc.h according to man page of free() and various C reference websites.
| author | Tobias Markmann <tm@ayena.de> |
|---|---|
| date | Fri, 28 Nov 2008 18:36:04 +0100 |
| parent | 441:4089b62b510c |
| child | 474:666e22848890 |
comparison
equal
deleted
inserted
replaced
| 472:ee45599c0b5d | 473:22b0e654c4cf |
|---|---|
| 5 | 5 |
| 6 // Newer MSVC compilers deprecate strcpy as unsafe, but we use it in a safe way | 6 // Newer MSVC compilers deprecate strcpy as unsafe, but we use it in a safe way |
| 7 #define _CRT_SECURE_NO_DEPRECATE | 7 #define _CRT_SECURE_NO_DEPRECATE |
| 8 | 8 |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 #include <malloc.h> | 10 #include <stdlib.h> |
| 11 | 11 |
| 12 #include "lua.h" | 12 #include "lua.h" |
| 13 #include "lauxlib.h" | 13 #include "lauxlib.h" |
| 14 | 14 |
| 15 /***************** BASE64 *****************/ | 15 /***************** BASE64 *****************/ |