X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fcatsearch.c;h=6115a4e4c306f068509d9036a91859b5d6565e72;hb=5f5367aa2eedd7e8538566a83d163cc549c9d68f;hp=8bc9adbed8e38933505fa9c7ebf638515e9bda46;hpb=94413c1dd8c24a1df937225877d77e5a99258c59;p=netatalk.git diff --git a/etc/afpd/catsearch.c b/etc/afpd/catsearch.c index 8bc9adbe..6115a4e4 100644 --- a/etc/afpd/catsearch.c +++ b/etc/afpd/catsearch.c @@ -736,8 +736,8 @@ static int catsearch_afp(AFPObj *obj _U_, char *ibuf, size_t ibuflen, } /* Parse file specifications */ - spec1 = ibuf; - spec2 = ibuf + spec_len + 2; + spec1 = (unsigned char*)ibuf; + spec2 = (unsigned char*)ibuf + spec_len + 2; spec1 += 2; spec2 += 2;