This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project wmaker-crm.git.

The branch, next has been updated
  discards  d2260cd39dc046ae984e826104d74c2e674fa10d (commit)
  discards  c629e6f0f7bf1df07f1657a6d349c18fa159400e (commit)
  discards  0a6f78580d09e7425806487b80436042e6230505 (commit)
  discards  bc3d35fc3cadc01f43a78ae7047a1d3e0e1f79fd (commit)
  discards  c3875da8d63ed4eb8a68ae52eba905629adbb9bd (commit)
       via  e01d14abe4fe1a7d71ef495c6931c0b4a1703aa9 (commit)
       via  e499f31a4e775df5c2442ccc2c802fb5d280beff (commit)
       via  8fe18de9265bf0f659c0c183f67776acfd7e693d (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (d2260cd39dc046ae984e826104d74c2e674fa10d)
                         N -- N -- N (e01d14abe4fe1a7d71ef495c6931c0b4a1703aa9)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://repo.or.cz/w/wmaker-crm.git/commit/e01d14abe4fe1a7d71ef495c6931c0b4a1703aa9

commit e01d14abe4fe1a7d71ef495c6931c0b4a1703aa9
Author: Christophe CURIS <[email protected]>
Date:   Fri Jul 29 22:38:09 2011 +0200

    Fix possible missing NUL at end of string
    
    There are were a few uses of 'strncpy' that could lead to a missing NUL,
    resulting in possible garbage being displayed. As suggested by Tamas,
    use 'wstrlcpy' instead

diff --git a/WINGs/wcolorpanel.c b/WINGs/wcolorpanel.c
index 7ebe8ba..c86dfdd 100644
--- a/WINGs/wcolorpanel.c
+++ b/WINGs/wcolorpanel.c
@@ -3400,9 +3400,8 @@ char *generateNewFilename(char *curName)
 
        newName = wmalloc(baseLen + 16);
        strncpy(newName, curName, baseLen);
-       newName[baseLen] = 0;
 
-       sprintf(&newName[baseLen], " {%i}", n + 1);
+       snprintf(&newName[baseLen], 16, " {%i}", n + 1);
 
        return newName;
 }
diff --git a/src/defaults.c b/src/defaults.c
index 300a0bb..dab5e64 100644
--- a/src/defaults.c
+++ b/src/defaults.c
@@ -2005,7 +2005,7 @@ static int getKeybind(WScreen * scr, WDefaultEntry * 
entry, WMPropList * value,
                return True;
        }
 
-       strncpy(buf, val, MAX_SHORTCUT_LENGTH);
+       wstrlcpy(buf, val, MAX_SHORTCUT_LENGTH);
 
        b = (char *)buf;
 
diff --git a/src/rootmenu.c b/src/rootmenu.c
index 5592f73..0ecd3b4 100644
--- a/src/rootmenu.c
+++ b/src/rootmenu.c
@@ -424,7 +424,7 @@ static Bool addShortcut(char *file, char 
*shortcutDefinition, WMenu * menu, WMen
 
        ptr = wmalloc(sizeof(Shortcut));
 
-       strncpy(buf, shortcutDefinition, MAX_SHORTCUT_LENGTH);
+       wstrlcpy(buf, shortcutDefinition, MAX_SHORTCUT_LENGTH);
        b = (char *)buf;
 
        /* get modifiers */
diff --git a/src/usermenu.c b/src/usermenu.c
index 0339bbb..49473c8 100644
--- a/src/usermenu.c
+++ b/src/usermenu.c
@@ -157,9 +157,9 @@ static WUserMenuData *convertShortcuts(WScreen * scr, 
WMPropList * shortcut)
        for (i = 0, j = 0; i < keycount; i++) {
                data->key[j].modifier = 0;
                if (WMIsPLArray(shortcut)) {
-                       strncpy(buf, 
WMGetFromPLString(WMGetFromPLArray(shortcut, i)), MAX_SHORTCUT_LENGTH);
+                       wstrlcpy(buf, 
WMGetFromPLString(WMGetFromPLArray(shortcut, i)), MAX_SHORTCUT_LENGTH);
                } else {
-                       strncpy(buf, WMGetFromPLString(shortcut), 
MAX_SHORTCUT_LENGTH);
+                       wstrlcpy(buf, WMGetFromPLString(shortcut), 
MAX_SHORTCUT_LENGTH);
                }
                b = (char *)buf;
 
diff --git a/src/workspace.c b/src/workspace.c
index b726f7f..c0493f3 100644
--- a/src/workspace.c
+++ b/src/workspace.c
@@ -749,7 +749,7 @@ void wWorkspaceMenuUpdate(WScreen * scr, WMenu * menu)
                i = scr->workspace_count - (menu->entry_no - 2);
                ws = menu->entry_no - 2;
                while (i > 0) {
-                       strncpy(title, scr->workspaces[ws]->name, 
MAX_WORKSPACENAME_WIDTH);
+                       wstrlcpy(title, scr->workspaces[ws]->name, 
MAX_WORKSPACENAME_WIDTH);
 
                        entry = wMenuAddCallback(menu, title, switchWSCommand, 
(void *)ws);
                        entry->flags.indicator = 1;

http://repo.or.cz/w/wmaker-crm.git/commit/e499f31a4e775df5c2442ccc2c802fb5d280beff

commit e499f31a4e775df5c2442ccc2c802fb5d280beff
Author: Carlos R. Mafra <[email protected]>
Date:   Sat Aug 6 19:12:22 2011 +0200

    Remove Netscape icon

diff --git a/WindowMaker/Icons/Makefile.am b/WindowMaker/Icons/Makefile.am
index b1df351..f114929 100644
--- a/WindowMaker/Icons/Makefile.am
+++ b/WindowMaker/Icons/Makefile.am
@@ -35,7 +35,6 @@ defsdata_DATA =       mixer.xpm       Mouth.png       
Mozilla.png-    Netscape.png    notepad.tiff    notepad.xpm     pdf.tiffdiff 
--git a/WindowMaker/Icons/Netscape.png b/WindowMaker/Icons/Netscape.png
deleted file mode 100644
index 2e7ccb6..0000000
Binary files a/WindowMaker/Icons/Netscape.png and /dev/null differ

http://repo.or.cz/w/wmaker-crm.git/commit/8fe18de9265bf0f659c0c183f67776acfd7e693d

commit 8fe18de9265bf0f659c0c183f67776acfd7e693d
Author: Carlos R. Mafra <[email protected]>
Date:   Sat Aug 6 15:49:35 2011 +0200

    Use wmgenmenu to create WMRootMenu during installation
    
    Instead of using _old_ and hard-coded predefined menus as the
    source for the user's WMRootMenu during installation, generate
    the menu automatically using wmgenmenu.
    
    Signed-off-by: Carlos R. Mafra <[email protected]>

diff --git a/util/wmaker.inst.in b/util/wmaker.inst.in
index 2acbbd6..6257a54 100644
--- a/util/wmaker.inst.in
+++ b/util/wmaker.inst.in
@@ -61,24 +61,6 @@ copy() {
        rm -f "$target"
        if [ "$file" = "WindowMaker" ]; then
                sed -e "s|~/GNUstep|$GSDIR|g" "$source" > "$target"
-       elif [ "$file" = "WMRootMenu" ]; then
-               if [ "$LOCALE" ]; then
-                   if [ -f "$GLOBALDIR/plmenu.$LOCALE" ]; then
-                       source="$GLOBALDIR/plmenu.$LOCALE"
-                   elif [ -f "$GLOBALDIR/plmenu.${LOCALE%.*}" ]; then
-                       source="$GLOBALDIR/plmenu.${LOCALE%.*}"
-                   elif [ -f "$GLOBALDIR/plmenu.${LOCALE%_*}" ]; then
-                       source="$GLOBALDIR/plmenu.${LOCALE%_*}"
-                   elif [ -f "$GLOBALDIR/menu.${LOCALE%_*}" ]; then
-                       source="$GLOBALDIR/menu.${LOCALE%_*}"
-                   else
-                       source="$GLOBALDIR/plmenu"
-                   fi
-               else
-                   source="$GLOBALDIR/plmenu"
-               fi
-               sed -e "s:#wmdatadir#:$GLOBALDIR:g" -                   
"$source" > "$GSDIR/Defaults/WMRootMenu"
        else
                if test "x$GNUSTEP_USER_ROOT" = "x"; then
                        sed -e "s:#wmdatadir#:$GLOBALDIR:g" @@ -91,7 +73,12 @@ 
copy() {
        fi
 }
 
-
+#
+# Generate WMRootmenu
+#
+GenerateMenu() {
+       wmgenmenu > $GSDIR/Defaults/WMRootMenu
+}
 
 echo "Installing WindowMaker $VERSION for current user..."
 
@@ -160,6 +147,7 @@ for i in $FILES; do
        fi
 done
 
+       GenerateMenu
 
 if [ ! -d "$GSDIR/Library/Icons/" ]; then
       echo "Creating icon library directory $GSDIR/Library/Icons"

-----------------------------------------------------------------------

Summary of changes:
 WindowMaker/Defaults/WMGLOBAL              |    1 +
 WindowMaker/Defaults/WMState.in            |   31 ++--
 WindowMaker/Defaults/WMWindowAttributes.in |   71 +++++-
 WindowMaker/Defaults/WindowMaker.in        |  254 ++++++++++------------
 WindowMaker/Pixmaps/tile.xpm               |  330 ++++++++++++++++++++++------
 5 files changed, 456 insertions(+), 231 deletions(-)


repo.or.cz automatic notification. Contact project admin [email protected]
if you want to unsubscribe, or site admin [email protected] if you receive
no reply.
-- 
wmaker-crm.git ("Fork from the last available CVS version of Window Maker")


-- 
To unsubscribe, send mail to [email protected].

Reply via email to