summaryrefslogtreecommitdiff
path: root/misc/kdeedu3/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'misc/kdeedu3/patches/patch-ae')
-rw-r--r--misc/kdeedu3/patches/patch-ae48
1 files changed, 48 insertions, 0 deletions
diff --git a/misc/kdeedu3/patches/patch-ae b/misc/kdeedu3/patches/patch-ae
new file mode 100644
index 00000000000..7fa03261245
--- /dev/null
+++ b/misc/kdeedu3/patches/patch-ae
@@ -0,0 +1,48 @@
+$NetBSD: patch-ae,v 1.1.2.2 2005/02/20 18:45:05 snj Exp $
+
+--- kstars/kstars/indidriver.cpp.orig 2004-07-18 05:52:56.000000000 +1200
++++ kstars/kstars/indidriver.cpp
+@@ -19,6 +19,7 @@
+ #include "indihostconf.h"
+ #include "devicemanager.h"
+ #include "indidevice.h"
++#include "indi/indicom.h"
+
+ #include "kstars.h"
+ #include "kstarsdata.h"
+@@ -532,7 +533,7 @@ bool INDIDriver::buildDeviceGroup(XMLEle
+
+ if (!ap)
+ {
+- sprintf(errmsg, "Tag %s does not have a group attribute", tagXMLEle(root));
++ snprintf(errmsg, ERRMSG_SIZE, "Tag %.64s does not have a group attribute", tagXMLEle(root));
+ return false;
+ }
+
+@@ -580,7 +581,7 @@ bool INDIDriver::buildDriverElement(XMLE
+ ap = findXMLAtt(root, "label");
+ if (!ap)
+ {
+- sprintf(errmsg, "Tag %s does not have a label attribute", tagXMLEle(root));
++ snprintf(errmsg, ERRMSG_SIZE, "Tag %.64s does not have a label attribute", tagXMLEle(root));
+ return false;
+ }
+
+@@ -590,7 +591,7 @@ bool INDIDriver::buildDriverElement(XMLE
+ ap = findXMLAtt(root, "driver");
+ if (!ap)
+ {
+- sprintf(errmsg, "Tag %s does not have a driver attribute", tagXMLEle(root));
++ snprintf(errmsg, ERRMSG_SIZE, "Tag %.64s does not have a driver attribute", tagXMLEle(root));
+ return false;
+ }
+
+@@ -833,7 +834,7 @@ IDevice::IDevice(QString inLabel, QStrin
+
+ }
+
+-void IDevice::processstd(KProcess */*proc*/, char* buffer, int /*buflen*/)
++void IDevice::processstd(KProcess* /*proc*/, char* buffer, int /*buflen*/)
+ {
+ serverBuffer.append(buffer);
+ emit newServerInput();