… | |
… | |
18 | * You should have received a copy of the GNU General Public License |
18 | * You should have received a copy of the GNU General Public License |
19 | * along with this program; if not, write to the Free Software |
19 | * along with this program; if not, write to the Free Software |
20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
21 | *----------------------------------------------------------------------*/ |
21 | *----------------------------------------------------------------------*/ |
22 | |
22 | |
23 | #include <stdint.h> |
|
|
24 | #include <cstdlib> |
23 | #include <cstdlib> |
25 | #include <cstring> |
24 | #include <cstring> |
26 | #include <cstdio> |
25 | #include <cstdio> |
27 | |
26 | |
|
|
27 | #include <inttypes.h> |
28 | #include <unistd.h> |
28 | #include <unistd.h> |
29 | #include <sys/utsname.h> |
29 | #include <sys/utsname.h> |
30 | #include <limits.h> |
30 | #include <limits.h> |
31 | |
31 | |
32 | #include "rxvtdaemon.h" |
32 | #include "rxvtdaemon.h" |
… | |
… | |
40 | { |
40 | { |
41 | struct utsname u; |
41 | struct utsname u; |
42 | uname (&u); |
42 | uname (&u); |
43 | |
43 | |
44 | path = getenv ("HOME"); |
44 | path = getenv ("HOME"); |
45 | snprintf (name, PATH_MAX, "%s/.rxvt-%s", |
45 | snprintf (name, PATH_MAX, "%s/.rxvt-unicode-%s", |
46 | path ? path : "/tmp", |
46 | path ? path : "/tmp", |
47 | u.nodename); |
47 | u.nodename); |
48 | |
48 | |
49 | path = name; |
49 | path = name; |
50 | } |
50 | } |