Mercurial > mplayer.hg
diff gui/util/string.h @ 33740:2c02269701bd
Remove macros guiSetFilename() and guiSetDF() from interface.h.
Rename guiSetFilename() setdup() and guiSetDF() setddup()
and define them in string.c as functions.
Adjust malloc size to necessary size and check pointer returned
by malloc() to prevent segmentation fault.
author | ib |
---|---|
date | Thu, 07 Jul 2011 10:16:22 +0000 |
parents | 71c29e8ec68f |
children | 0d3d8db05a59 |
line wrap: on
line diff
--- a/gui/util/string.h Thu Jul 07 09:29:15 2011 +0000 +++ b/gui/util/string.h Thu Jul 07 10:16:22 2011 +0000 @@ -24,6 +24,8 @@ int gstrcmp(const char *a, const char *b); char *gstrdup(const char *str); int gstrncmp(const char *a, const char *b, int n); +void setddup(char **old, const char *dir, const char *name); +void setdup(char **old, const char *str); char *strlower(char *in); char *strswap(char *in, char from, char to); char *trim(char *in);