Skip to content

Instantly share code, notes, and snippets.

@bryan-lunt
Created June 2, 2013 22:33
Show Gist options
  • Save bryan-lunt/5695194 to your computer and use it in GitHub Desktop.
Save bryan-lunt/5695194 to your computer and use it in GitHub Desktop.
Patch to fix bad printf strings in jnet.c
diff --git a/src/jnet.c b/src/jnet.c
index e0cd13e..81df7a9 100644
--- a/src/jnet.c
+++ b/src/jnet.c
@@ -1144,7 +1144,7 @@ void dopred(alldata *data[],int count,int printsty)
if (nohmm == 1 && nopsi == 1){
- fprintf (stderr, "\nWARNING!: Only using the sequence alignment\n Accuracy will average 71.6%\n\n");
+ fprintf (stderr, "\nWARNING!: Only using the sequence alignment\n Accuracy will average 71.6%%\n\n");
for (j=0; j < length;j++){
consfin[j]=alignfin[j];
@@ -1156,7 +1156,7 @@ void dopred(alldata *data[],int count,int printsty)
if (nohmm == 0 && nopsi ==1){
- fprintf (stderr, "\n\nWARNING!: Only using the sequence alignment, and HMM profile\n Accuracy will average 74.4%\n\n");
+ fprintf (stderr, "\n\nWARNING!: Only using the sequence alignment, and HMM profile\n Accuracy will average 74.4%%\n\n");
for (j=0; j < length;j++){
consfin[j]=hmmfin[j];
@@ -1167,7 +1167,7 @@ void dopred(alldata *data[],int count,int printsty)
if (nohmm == 0 && nopsi == 0){
- fprintf (stderr, "\n\nBoth PSIBLAST and HMM profiles were found\nAccuracy will average 76.4%\n\n");
+ fprintf (stderr, "\n\nBoth PSIBLAST and HMM profiles were found\nAccuracy will average 76.4%%\n\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment