discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Bug in usrper.cc


From: Berndt Josef Wulf
Subject: [Discuss-gnuradio] Bug in usrper.cc
Date: Wed, 9 Feb 2005 01:23:38 +1030
User-agent: KMail/1.7.2

G'day,

below is a patch that fixes a small bug in ursper.cc.

------------------------------------ 8< --------------------------------------
--- usrper.cc.orig      2005-02-09 01:14:21.000000000 +1030
+++ usrper.cc   2005-02-09 01:15:31.000000000 +1030
@@ -48,7 +48,7 @@
 usage ()
 {
   fprintf (stderr, "usage: \n");
-  fprintf (stderr, "  %s [-v] [-w <which_board>] [-x] ...\n");
+  fprintf (stderr, "  %s [-v] [-w <which_board>] [-x] ...\n", prog_name);
   fprintf (stderr, "  %s load_standard_bits\n", prog_name);
   fprintf (stderr, "  %s load_firmware <file.ihx>\n", prog_name);
   fprintf (stderr, "  %s load_fpga <file.rbf>\n", prog_name);
------------------------------------ 8< --------------------------------------

Without it, ursper wil print random data in case of the second usage option 
line due to missing variable matching the string argument.

cheerio Berndt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]