[gnome-commander] Added some safety precautions
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-commander] Added some safety precautions
- Date: Tue, 18 Aug 2009 20:11:05 +0000 (UTC)
commit e3b96a94fdcd8d4c71d73c6c84e63c436bdb2a2d
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Tue Aug 18 22:06:52 2009 +0200
Added some safety precautions
src/gnome-cmd-chmod-component.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-chmod-component.cc b/src/gnome-cmd-chmod-component.cc
index 45d6639..8af3e5c 100644
--- a/src/gnome-cmd-chmod-component.cc
+++ b/src/gnome-cmd-chmod-component.cc
@@ -55,8 +55,8 @@ static void on_perms_changed (GnomeCmdChmodComponent *comp)
GnomeVFSFilePermissions perms = gnome_cmd_chmod_component_get_perms (comp);
- perm2textstring (perms, text_view, 10);
- perm2numstring (perms, number_view, 4);
+ perm2textstring (perms, text_view, sizeof(text_view));
+ perm2numstring (perms, number_view, sizeof(number_view));
gtk_label_set_text (GTK_LABEL (comp->priv->textview_label), text_view);
gtk_label_set_text (GTK_LABEL (comp->priv->numberview_label), number_view);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]