[xiph-commits] r8396 - trunk/MTG

xiphmont at motherfish-iii.xiph.org xiphmont at motherfish-iii.xiph.org
Tue Dec 14 14:27:51 PST 2004


Author: xiphmont
Date: 2004-12-14 14:27:50 -0800 (Tue, 14 Dec 2004)
New Revision: 8396

Modified:
   trunk/MTG/soundboard.c
Log:
Patch from rradez at mit.edu: Fix minor formatting bugs and an off-by-one
that was causing a crash



Modified: trunk/MTG/soundboard.c
===================================================================
--- trunk/MTG/soundboard.c	2004-12-14 21:27:47 UTC (rev 8395)
+++ trunk/MTG/soundboard.c	2004-12-14 22:27:50 UTC (rev 8396)
@@ -2145,7 +2145,7 @@
 /********************** main run screen ***********************/
 void main_update_master(int n,int y){
   if(menu==MENU_MAIN){
-    char buf[4];
+    char buf[5];
     if(n>300)n=300;
     if(n<0)n=0;
 
@@ -2541,9 +2541,9 @@
 int main_menu(){
   clear();
   move(0,0);
-  addstr("MTG Beaverphonic build "VERSION": ");
+  addnstr("MTG Beaverphonic build "VERSION": ",67);
   attron(A_BOLD);
-  addstr(program);
+  mvaddnstr(1,0,program, -1);
   attroff(A_BOLD);
   update_editable();
 
@@ -2607,10 +2607,11 @@
 	return(MENU_QUIT);
       }
       move(0,0);
-      addstr("MTG Beaverphonic build "VERSION": ");
+      addnstr("MTG Beaverphonic build "VERSION": ",67);
       attron(A_BOLD);
-      addstr(program);
+      mvaddnstr(1,0,program,-1);
       attroff(A_BOLD);
+      update_editable();
       break;
     case 'e':
       if(editable && cue_list_number<cue_count)return(MENU_EDIT);



More information about the commits mailing list