Mercurial > pidgin.yaz
comparison src/util.c @ 10332:8d42237564f6
[gaim-migrate @ 11539]
Two util functions were only half-const
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 09 Dec 2004 01:08:14 +0000 |
parents | 357d4fa1bfbe |
children | 618a330c0260 |
comparison
equal
deleted
inserted
replaced
10331:20df7dd1c57c | 10332:8d42237564f6 |
---|---|
1859 #endif | 1859 #endif |
1860 } | 1860 } |
1861 | 1861 |
1862 /* returns a string of the form ~/.gaim, where ~ is replaced by the user's home | 1862 /* returns a string of the form ~/.gaim, where ~ is replaced by the user's home |
1863 * dir. Note that there is no trailing slash after .gaim. */ | 1863 * dir. Note that there is no trailing slash after .gaim. */ |
1864 char * | 1864 const char * |
1865 gaim_user_dir(void) | 1865 gaim_user_dir(void) |
1866 { | 1866 { |
1867 if (custom_home_dir != NULL && strlen(custom_home_dir) > 0) { | 1867 if (custom_home_dir != NULL && strlen(custom_home_dir) > 0) { |
1868 strcpy ((char*) &home_dir, (char*) &custom_home_dir); | 1868 strcpy ((char*) &home_dir, (char*) &custom_home_dir); |
1869 } else { | 1869 } else { |