From 343038c6b49cbd7822974bdf14ee1eb4b88dc346 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 30 Dec 2003 17:52:26 +0000 Subject: [PATCH] [project @ 2003-12-30 17:52:26 by jmb] Add some error handling svn path=/import/netsurf/; revision=473 --- riscos/about.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/riscos/about.c b/riscos/about.c index 44846bc55..e7ca7be30 100644 --- a/riscos/about.c +++ b/riscos/about.c @@ -179,10 +179,18 @@ void about_create(void) { LOG(("var: %s", var)); sprintf(buf, "%s.", val); LOG(("buf: %s", buf)); - xosfscontrol_canonicalise_path(var, 0, 0, buf, 0, &pneeded); + e = xosfscontrol_canonicalise_path(var, 0, 0, buf, 0, &pneeded); + if (e) { + LOG(("%s", e->errmess)); + return; + } fname = xcalloc((unsigned int)(10-pneeded), sizeof(char)); - xosfscontrol_canonicalise_path(var, fname, 0, buf, + e = xosfscontrol_canonicalise_path(var, fname, 0, buf, (10-pneeded), 0); + if (e) { + LOG(("%s", e->errmess)); + return; + } LOG(("fname: %s", fname)); furl = xcalloc(strlen(fname) + 20, sizeof(char));