]> git.pld-linux.org Git - packages/awesfx.git/commitdiff
- updated for 0.5.0
authorfreetz <freetz@pld-linux.org>
Fri, 6 Feb 2004 19:06:06 +0000 (19:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    awesfx-etc_dir.patch -> 1.3

awesfx-etc_dir.patch

index af7a3ffce284c1985a5bcbca5389d0134533974f..12d3dcc91674f3faa018d8bff35f3fdcc1b2b2b1 100644 (file)
@@ -1,26 +1,23 @@
-diff -Nru awesfx-0.4.4/awelib/config.h awesfx-0.4.4.new/awelib/config.h
---- awesfx-0.4.4/awelib/config.h       Wed May 31 13:03:30 2000
-+++ awesfx-0.4.4.new/awelib/config.h   Sun Mar 23 14:15:42 2003
-@@ -20,6 +20,7 @@
- /* rc file & command line options */
+diff -aurN awesfx-0.5.0.orig/awelib/optfile.c awesfx-0.5.0/awelib/optfile.c
+--- awesfx-0.5.0.orig/awelib/optfile.c 2004-01-22 19:06:51.000000000 +0100
++++ awesfx-0.5.0/awelib/optfile.c      2004-02-06 19:08:05.631829376 +0100
+@@ -29,6 +29,7 @@
  #define SYSTEM_RCFILE         "/etc/sfxloadrc"
  #define RCFILE                        ".sfxloadrc"
 +#define ETC_DIR_RCFILE                ".sfxloadrc"
  
- /* big endian machine defines this */
- #undef BUILD_BIG_ENDIAN
-diff -Nru awesfx-0.4.4/awelib/optfile.c awesfx-0.4.4.new/awelib/optfile.c
---- awesfx-0.4.4/awelib/optfile.c      Thu Apr 27 13:45:31 2000
-+++ awesfx-0.4.4.new/awelib/optfile.c  Sun Mar 23 14:17:31 2003
-@@ -47,6 +47,11 @@
+ #define DEFAULT_ID    "default"
+@@ -50,6 +51,11 @@
        OptionFile *rec;
  
        *rcfile = 0;
 +      if ((p = getenv("HOME_ETC")) != NULL && *p) {
-+              sprintf(rcfile, "%s/%s", p, ETC_DIR_RCFILE);
++              snprintf(rcfile, sizeof(rcfile), "%s/%s", p, ETC_DIR_RCFILE);
 +              if (access(rcfile, R_OK) != 0)
 +                      rcfile[0] = 0;
 +      } else
        if ((p = getenv("HOME")) != NULL && *p) {
-               sprintf(rcfile, "%s/%s", p, RCFILE);
+               snprintf(rcfile, sizeof(rcfile), "%s/%s", p, RCFILE);
                if (access(rcfile, R_OK) != 0)
This page took 0.111465 seconds and 4 git commands to generate.