summaryrefslogtreecommitdiff
path: root/mail/vpopmail-devel/files/patch-vdelivermail.c
blob: 1062812260070acf8c76d47b81b1e12894c20541 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- vdelivermail.c.orig	Sat Nov  2 22:34:39 2002
+++ vdelivermail.c	Sat Nov  2 22:35:20 2002
@@ -263,7 +263,7 @@
 
     /* check for wildcard if there's no match */
     if(tmpstr == NULL) {
-        for(i=strlen(TheUser);i >= 0 && j != 1;--i) {
+        for(i=strlen(TheUser);i > 0 && j != 1;--i) {
             if(TheUser[i-1]=='-') {
                 tmpuser[0] = '\0';
                 strncat(tmpuser,TheUser,i);