menu "Settings"
config DESKTOP
- bool "Enable compatibility for full-blown desktop systems"
+ bool "Enable compatibility for full-blown desktop systems (8kb)"
default y
help
Enable applet options and features which are not essential.
is_same = 0;
if ((fp_target = fopen(ptarget, "r")) != NULL)
{
- fgets(old_line, buffer_size, fp_target);
+ if (!fgets(old_line, buffer_size, fp_target))
+ ERROR_EXIT(ptarget);
if (fclose(fp_target) != 0)
ERROR_EXIT(ptarget);
if (!strcmp(line, old_line))
check_stdin();
case ask_all:
fflush(stdout);
- fgets(line, 128, stdin);
+ if (!fgets(line, 128, stdin))
+ exit(1);
return;
case set_default:
printf("%s\n", def);
check_stdin();
case ask_all:
fflush(stdout);
- fgets(line, 128, stdin);
+ if (!fgets(line, 128, stdin))
+ exit(1);
strip(line);
if (line[0] == '?') {
printf("\n%s\n", menu->sym->help ?
int ret = dialog_inputbox(t, av[2], atoi(av[3]), atoi(av[4]),
ac == 6 ? av[5] : (char *)NULL);
if (ret == 0)
- fprintf(stderr, dialog_input_result);
+ fprintf(stderr, "%s", dialog_input_result);
return ret;
}
*argptr++ = NULL;
- pipe(pipefd);
+ if (pipe(pipefd))
+ _exit(EXIT_FAILURE);
pid = fork();
if (pid == 0) {
sigprocmask(SIG_SETMASK, &osset, NULL);
static void show_textbox(const char *title, const char *text, int r, int c)
{
int fd;
+ int len = strlen(text);
fd = creat(".help.tmp", 0777);
- write(fd, text, strlen(text));
+ if (write(fd, text, len) != len)
+ exit(1);
close(fd);
show_file(".help.tmp", title, r, c);
unlink(".help.tmp");