Confparse: Improve file_to_str.

This commit is contained in:
Martin Duquesnoy
2009-08-11 00:45:53 +02:00
parent 20d247438c
commit 5fb455840a
2 changed files with 11 additions and 4 deletions

View File

@@ -94,11 +94,11 @@ setwinstate(Window win, long state)
}
/** My strdup. the strdup of string.h isn't ansi compatible..
* Thanks linkkd.
* Thanks linkdd.
* \param str char pointer
*/
char*
_strdup(char const *str)
_strdup(const char *str)
{
char *ret = emalloc(strlen(str) + 1, sizeof(char));