WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: A patch for flwm_topside_unicode freeze window bug  (Read 1752 times)

Offline littlebat

  • Newbie
  • *
  • Posts: 25
A patch for flwm_topside_unicode freeze window bug
« on: November 25, 2011, 05:32:12 AM »
This is a patch for TCE bug "flwm_topside_unicode cant logout,click "logout", no popup window":  http://forum.tinycorelinux.net/index.php/topic,9145.0.html
Works for flwm_topside_unicode (or flwm-1.14) in tinycore-3.7.1 or tinycore-4.0.2. But tinycore-3.7.1 need compile fltk-1.3 from scratch, fltk-1.3.tcz and fltk-1.3-dev.tcz in 3.x TCE repository will cause such as "main.C:80: error: incomplete type 'Fl_X' used in nested name specifier" error when compile flwm_topside_unicode.

source:
http://distro.ibiblio.org/tinycorelinux/3.x/tcz/src/fltk-1.3/fltk-1.3.tar.xz
http://distro.ibiblio.org/tinycorelinux/3.x/tcz/src/flwm_topside_unicode/flwm_topside_unicode.tar.xz

The bug is missing a Null pointer at the end of args list in function execlp(). But I don't know why it works in flwm1.12_topside, flwm1.13_topside. I am not a programmer.

And, I sugguest include these source files into 4.x repository online. I only found them in 3.x or 2.x repository.

Below is the content of the patch:
Quote
--- flwm-1.14.orig/Menu.C   2011-11-25 11:31:50.797575224 +0000
+++ flwm-1.14/Menu.C   2011-11-25 11:40:12.171591248 +0000
@@ -237,7 +237,7 @@
 {
   int pid=0;
   if (( pid=fork()) == 0) {
-    execlp("exittc","exittc");
+    execlp("exittc","exittc",(void*)0);
   }
 }
« Last Edit: November 28, 2011, 06:32:16 AM by littlebat »

Offline aswjh

  • Jr. Member
  • **
  • Posts: 85
Re: A patch for flwm_topside_unicode freeze window bug
« Reply #1 on: December 18, 2011, 08:11:50 PM »
Thank you ,it's ok.