xplist: Prevent undefined behavior by not trying to negate INT64_MIN
diff --git a/src/xplist.c b/src/xplist.c
index 9569d07..d8f6458 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -409,7 +409,7 @@
     int64_t po10;
     n=1;
     if (i < 0) {
-        i = -i;
+        i = (i == INT64_MIN) ? INT64_MAX : -i;
         n++;
     }
     po10=10;