Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37862836
en ru br
Репозитории ALT
S:0.8-alt3
5.1: 0.8-alt2
www.altlinux.org/Changes

Группа :: Графические оболочки/Прочее
Пакет: scrot

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: scrot-alt-warnings-fix.patch
Скачать


diff --git a/scrot/src/main.c b/scrot/src/main.c
index 544715e..602308c 100644
--- a/scrot/src/main.c
+++ b/scrot/src/main.c
@@ -164,9 +164,13 @@ scrot_exec_app(Imlib_Image image, struct tm *tm,
                char *filename_im, char *filename_thumb)
 {
   char *execstr;
+  int ret = 0;
 
   execstr = im_printf(opt.exec, tm, filename_im, filename_thumb, image);
-  system(execstr);
+  ret = system(execstr);
+  if (ret < 0)
+    exit(1);
+
   exit(0);
 }
 
@@ -321,7 +325,8 @@ scrot_sel_and_grab_image(void)
       /* get geometry of window and use that */
       /* get windowmanager frame of window */
       if (target != root) {
-        unsigned int d, x;
+        int x;
+        unsigned int d;
         int status;
 
         status = XGetGeometry(disp, target, &root, &x, &x, &d, &d, &d, &d);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin