repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 279d5d669a73dff8b28c6ca06d6146316efb049a:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 279d5d669a73dff8b28c6ca06d6146316efb049a
Author: Emanuele Giaquinta 
Date:   Sat Jan 8 10:37:21 2011 +0000

    Simplify.

diff --git a/src/main.C b/src/main.C
index 03c80b0ac6f8a0a8518bdee70f1a38c7bb462bc9..
index ..18e3a16da3d69173cf0ae3d24e4b9bae4bb2f289 100644
--- a/src/main.C
+++ b/src/main.C
@@ -958,10 +958,9 @@ rxvt_term::set_colorfgbg ()
 {
   unsigned int i;
   const char *xpmb = "";
-  char fstr[sizeof ("default") + 1], bstr[sizeof ("default") + 1];
+  char fstr[] = "default";
+  char bstr[] = "default";

-  strcpy (fstr, "default");
-  strcpy (bstr, "default");
   for (i = Color_Black; i <= Color_White; i++)
     if (pix_colors[Color_fg] == pix_colors[i])
       {

-----END OF PAGE-----