[bug #27850] Segmentation Fault in print.c

View: New views
2 Messages — Rating Filter:   Alert me  

[bug #27850] Segmentation Fault in print.c

by Mario Castelán Castro-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


URL:
  <http://savannah.gnu.org/bugs/?27850>

                 Summary: Segmentation Fault in print.c
                 Project: Xnee
            Submitted by: None
            Submitted on: Thu 29 Oct 2009 04:21:56 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:



In print.c line 1828
 /* Plugin */
  fprintf (out,  "\n# Plugin file \n");
  if (xd->plugin_name==NULL)
    {
      fprintf (out,  "# ");
    }
 fprintf (out,  "%s       %s\n",
           xnee_xns_key2string(XNEE_PLUGIN_KEY),
           xd->plugin_name );


---------------------
Will fail if plugin_name == NULL

I changed it to:
 /* Plugin */
  fprintf (out,  "\n# Plugin file \n");
  if (xd->plugin_name==NULL)
    {
      fprintf (out,  "# ");
    }
  else {
    fprintf (out,  "%s       %s\n",
           xnee_xns_key2string(XNEE_PLUGIN_KEY),
           xd->plugin_name );
    }






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27850>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-xnee mailing list
Bug-xnee@...
http://lists.gnu.org/mailman/listinfo/bug-xnee

[bug #27850] Segmentation Fault in print.c

by Mario Castelán Castro-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Update of bug #27850 (project xnee):

                  Status:                    None => Fixed                  
             Assigned to:                    None => hesa                  
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #1:

Already fixed in CVS

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27850>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-xnee mailing list
Bug-xnee@...
http://lists.gnu.org/mailman/listinfo/bug-xnee