projects
/
oweals
/
cde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use POSIX macros for linux
[oweals/cde.git]
/
cde
/
programs
/
dtstyle
/
Backdrop.c
diff --git
a/cde/programs/dtstyle/Backdrop.c
b/cde/programs/dtstyle/Backdrop.c
index f95e04c4da1cb16dd161673303f4dc834f3289e5..2168a13a1d8b5f9df81bf220195035e6d7226a8e 100644
(file)
--- a/
cde/programs/dtstyle/Backdrop.c
+++ b/
cde/programs/dtstyle/Backdrop.c
@@
-16,7
+16,7
@@
* details.
*
* You should have received a copy of the GNU Lesser General Public
* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librar
ar
ies and programs; if not, write
+ * License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
@@
-594,10
+594,12
@@
static
/* read the directory $HOME/.dt/backdrops */
string = (char *)XtMalloc(strlen(style.home) + strlen("/.dt/backdrops") + 1);
/* read the directory $HOME/.dt/backdrops */
string = (char *)XtMalloc(strlen(style.home) + strlen("/.dt/backdrops") + 1);
- sprintf(string, "%s/.dt/backdrops", style.home);
- ReadBitmapDirectory(string);
if (string != NULL)
if (string != NULL)
+ {
+ sprintf(string, "%s/.dt/backdrops", style.home);
+ ReadBitmapDirectory(string);
XtFree(string);
XtFree(string);
+ }
if (backdrops.tmpNumBitmaps == 0)
{
if (backdrops.tmpNumBitmaps == 0)
{
@@
-749,9
+751,8
@@
ReadBitmapDirectory(
|| 0 == strcmp(name + strlen(name) - 3, ".bm")))
{
(void)strtok(name, ".");
|| 0 == strcmp(name + strlen(name) - 3, ".bm")))
{
(void)strtok(name, ".");
-
}
+ }
- fprintf(stderr, "'%s'\n", name);
/* check for duplicates */
duplicate = 0;
/* check for duplicates */
duplicate = 0;