summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 284562c)
raw | patch | inline | side by side (parent: 284562c)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 17 Feb 2009 08:30:54 +0000 (09:30 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 17 Feb 2009 08:30:54 +0000 (09:30 +0100) |
bindings/perl/Oping.xs | patch | blob | history |
diff --git a/bindings/perl/Oping.xs b/bindings/perl/Oping.xs
index 6376775e022bb912d8067f712a96d2afac88e83d..6fbf49cbc27ba71269c76fa954fd02342c7c0f02 100644 (file)
--- a/bindings/perl/Oping.xs
+++ b/bindings/perl/Oping.xs
(void *) buffer, &buffer_size);
if (status != ENOMEM)
break;
-
- /* FIXME: This is a workaround for a bug in 0.3.5. */
+#if !defined(OPING_VERSION) || (OPING_VERSION <= 3005)
+ /* This is a workaround for a bug in 0.3.5. */
buffer_size++;
+#endif
buffer = (char *) malloc (buffer_size);
if (buffer == NULL)