projects
/
claws.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sure we don't access out of bounds of the match string.
[claws.git]
/
src
/
common
/
utils.h
diff --git
a/src/common/utils.h
b/src/common/utils.h
index d556b0e0a1a4e5e036ccdc1e17684ea4a73c06a8..2df40347ed9c862cfacec5b687a3b87915fc88ac 100644
(file)
--- a/
src/common/utils.h
+++ b/
src/common/utils.h
@@
-222,6
+222,13
@@
G_STMT_END
} \
} G_STMT_END
+#ifndef MIN
+ #define MIN(a, b) ((a) < (b) ? (a) : (b))
+#endif
+#ifndef MAX
+ #define MAX(a, b) ((a) > (b) ? (a) : (b))
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif