On Mon, Sep 15, 2003 at 04:08:28PM +0200, Philippe Faes wrote: > This package is now ready to be (checked and) uploaded. It is at: > http://studwww.UGent.be/~pfaes/debian/xspringies > I've also included a screenshot. I'd appreciate any DD can upload it.
Please apply the enclosed patch. Steve --
--- file.c-orig 2003-09-15 15:13:53.000000000 +0100 +++ file.c 2003-09-15 15:14:36.000000000 +0100 @@ -30,8 +30,8 @@ #define FILE_EXT ".xsp" #ifndef COMPRESS -#define COMPRESS "gzip" -#define UNCOMPRESS "gunzip -c" +#define COMPRESS "/bin/gzip" +#define UNCOMPRESS "/bin/gunzip -c" #endif /* tilde_expand: expand ~/.. and ~bar/.. in filenames and put @@ -128,9 +128,9 @@ } #ifdef COMPRESS - sprintf(buff, "%s%s", file, COMPR_EXT); + snprintf(buff,sizeof(buff)-1, "%s%s", file, COMPR_EXT); if (stat(buff, &sbuf) == 0) { - sprintf(buff, "%s %s%s", UNCOMPRESS, file, COMPR_EXT); + snprintf(buff, sizeof(buff)-1,"%s %s%s", UNCOMPRESS, file, COMPR_EXT); if ((f = popen(buff, "r")) != NULL) { *p = TRUE; --- xdisp.c-orig 2003-09-15 15:12:00.000000000 +0100 +++ xdisp.c 2003-09-15 15:12:14.000000000 +0100 @@ -1554,7 +1554,7 @@ initst = sst = mst; if ((path = getenv("SPRINGDIR")) != NULL) { - strcpy(filename, path); + strncpy(filename, path,sizeof(filename)-1); } else { strcpy(filename, DEF_PATH); }