From 59cf6bcb96acc614f97114cfa51d933857cd80be Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 17 Jul 2003 15:37:36 +0000 Subject: [project @ 2003-07-17 15:37:36 by jmb] move scrap directory svn path=/import/netsurf/; revision=229 --- riscos/plugin.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'riscos/plugin.c') diff --git a/riscos/plugin.c b/riscos/plugin.c index 3f454ac21..8dba4ba87 100644 --- a/riscos/plugin.c +++ b/riscos/plugin.c @@ -230,13 +230,18 @@ void plugin_write_parameters_file(struct object_params *params) byte pdata[4] = {0, 0, 0, 0}; os_fw *pfile; int i, j, rsize; + char *tstr; /* Create the file */ - xosfile_create_dir(".NetSurf", 77); + xosfile_create_dir(".WWW", 77); + xosfile_create_dir(".WWW.NetSurf", 77); /* path + filename + terminating NUL */ params->filename = xcalloc(23+10+1 , sizeof(char)); xos_read_monotonic_time((int*)&time); - sprintf(params->filename, ".NetSurf.p%7d", (int)time<<8); + tstr = xcalloc(40, sizeof(char)); + sprintf(tstr, "%01u", (unsigned int)time<<8); + sprintf(params->filename, ".WWW.NetSurf.p%1.9s", tstr); + xfree(tstr); LOG(("filename: %s", params->filename)); xosfind_openoutw(osfind_NO_PATH, params->filename, NULL, &pfile); -- cgit v1.2.3