summaryrefslogtreecommitdiffstats
path: root/main/rtapd/musl-strtoq.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/rtapd/musl-strtoq.patch')
-rw-r--r--main/rtapd/musl-strtoq.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/rtapd/musl-strtoq.patch b/main/rtapd/musl-strtoq.patch
new file mode 100644
index 000000000..2fd19012f
--- /dev/null
+++ b/main/rtapd/musl-strtoq.patch
@@ -0,0 +1,20 @@
+--- ./rtapd.c.orig
++++ ./rtapd.c
+@@ -466,7 +466,7 @@
+ funct = *(pblock + 5);
+ memcpy(id, pblock + 6, 8);
+ id[8] = '\0';
+- pagenum = strtoq(id, NULL, 16);
++ pagenum = strtoll(id, NULL, 16);
+ sprintf(id, "!%qX", pagenum);
+ pxend = strchr(id, '\0');
+ pblock = pblock + 13;
+@@ -527,7 +527,7 @@
+ }
+ memcpy(id, pblock + 7, usedlen);
+ id[usedlen] = '\0';
+- pagenum = strtoq(id, NULL, 16);
++ pagenum = strtoll(id, NULL, 16);
+ sprintf(id, "!%qX", pagenum);
+ pxend = strchr(id, '\0');
+ pblock = pblock + 6 + caplen + msnlen;