src/server/util/util.c

changeset 548
40ecc0a6b280
parent 415
d938228c382e
--- a/src/server/util/util.c	Thu Aug 15 21:46:57 2024 +0200
+++ b/src/server/util/util.c	Thu Aug 15 22:16:05 2024 +0200
@@ -431,7 +431,7 @@
     char *end;
     errno = 0;
     int64_t val = strtoll(str, &end, 0);
-    if(errno == 0) {
+    if(errno == 0 && *end == '\0') {
         *value = val;
         return 1;
     } else {

mercurial