From 304510886da7e3969efd6d506e68652b533c0975 Mon Sep 17 00:00:00 2001
From: Miha <mihaf@hapi.(none)>
Date: Fri, 21 Feb 2014 12:22:07 +0000
Subject: [PATCH] Removed harmonic potential between poly-monomers for now. Added min and max distance between neighboring poly-vertices.

---
 src/general.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/general.c b/src/general.c
index b078f87..ed06398 100644
--- a/src/general.c
+++ b/src/general.c
@@ -3,9 +3,11 @@
 #include "general.h"
 #include<stdarg.h>
 
-ts_uint ts_fprintf(FILE *fd, char *fmt, va_list ap){
+ts_uint ts_fprintf(FILE *fd, char *fmt, ...){
 if(quiet) return TS_SUCCESS;
-fprintf(fd, fmt, ap); /* Call vprintf */
+    va_list ap;
+    va_start(ap,fmt);
+vfprintf(fd, fmt, ap); /* Call vfprintf */
 va_end(ap); /* Cleanup the va_list */
 return TS_SUCCESS;
 }

--
Gitblit v1.9.3