From 110a2a786bdc9919f5e995b2461f52128d714c2f Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 21 Jun 2017 11:36:02 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_coins.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_coins.c b/iguana/exchanges/LP_coins.c index c00c6008d..103fa1ea2 100644 --- a/iguana/exchanges/LP_coins.c +++ b/iguana/exchanges/LP_coins.c @@ -90,7 +90,19 @@ void LP_statefname(char *fname,char *symbol,char *assetname,char *str,char *name } else if ( name != 0 ) { - strcat(fname,name); + char name2[64]; +#ifdef __APPLE__ + int32_t len; + strcpy(name2,name); + name2[0] = toupper(name2[0]); + len = (int32_t)strlen(name2); + if ( strcmp(&name2[len-4],"coin") == 0 ) + name2[len - 4] = 'C'; +#else + name2[0] = '.'; + strcpy(name2+1,name); +#endif + strcat(fname,name2); } else {