From ffc41c1faabf1d209726eb701b6070169a58e8e1 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Tue, 15 Feb 2005 22:16:18 +0000 Subject: [PATCH] * treestore.c (str_common): Added a comment that str_common shall not be called with two equal strings. --- src/treestore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/treestore.c b/src/treestore.c index f66eee8f0..0c95e260b 100644 --- a/src/treestore.c +++ b/src/treestore.c @@ -58,7 +58,8 @@ tree_store_dirty(int state) ts.dirty = state; } -/* Returns number of common characters */ +/* Returns number of common characters; s1[] and s2[] must differ in + * at least one character, or the behaviour will be undefined. */ static int str_common(const char *s1, const char *s2) {