Changed user type from an enum to a collection of flags
[tpg/opendispense2.git] / src / client / main.c
index 9b136f8..711d1a9 100644 (file)
@@ -1138,7 +1138,7 @@ void _PrintUserLine(const char *Line)
                flags[flagsLen] = '\0';
                
                bal = atoi(Line + matches[4].rm_so);
-               printf("%-15s: $%4i.%02i (%s)\n", username, bal/100, bal%100, flags);
+               printf("%-15s: $%4i.%02i (%s)\n", username, bal/100, abs(bal)%100, flags);
        }
 }
 

UCC git Repository :: git.ucc.asn.au