confdata.c (e91610da7c8a9fe42f3e5a75f06c3d1a0cb5f815) | confdata.c (0dc4addb9111a1587ba9c08594a0f087905a572a) |
---|---|
1/* 2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 * Released under the terms of the GNU GPL v2.0. 4 */ 5 6#include <sys/stat.h> 7#include <ctype.h> 8#include <errno.h> --- 729 unchanged lines hidden (view full) --- 738 739int conf_write(const char *name) 740{ 741 FILE *out; 742 struct symbol *sym; 743 struct menu *menu; 744 const char *basename; 745 const char *str; | 1/* 2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 * Released under the terms of the GNU GPL v2.0. 4 */ 5 6#include <sys/stat.h> 7#include <ctype.h> 8#include <errno.h> --- 729 unchanged lines hidden (view full) --- 738 739int conf_write(const char *name) 740{ 741 FILE *out; 742 struct symbol *sym; 743 struct menu *menu; 744 const char *basename; 745 const char *str; |
746 char dirname[PATH_MAX+1], tmpname[PATH_MAX+1], newname[PATH_MAX+1]; | 746 char dirname[PATH_MAX+1], tmpname[PATH_MAX+22], newname[PATH_MAX+8]; |
747 char *env; 748 749 dirname[0] = 0; 750 if (name && name[0]) { 751 struct stat st; 752 char *slash; 753 754 if (!stat(name, &st) && S_ISDIR(st.st_mode)) { --- 493 unchanged lines hidden --- | 747 char *env; 748 749 dirname[0] = 0; 750 if (name && name[0]) { 751 struct stat st; 752 char *slash; 753 754 if (!stat(name, &st) && S_ISDIR(st.st_mode)) { --- 493 unchanged lines hidden --- |