]> code.citadel.org Git - citadel.git/blobdiff - citadel/support.c
* more buffer size stuff
[citadel.git] / citadel / support.c
index c876ca218c630fe5c2756614af7660b5e3c89356..99284f6c739195e47a630e194edce4d10f86809a 100644 (file)
@@ -109,7 +109,7 @@ void mesg_locate(char *targ, char *searchfor, int numdirs, char **dirs)
                sprintf(buf,"cd %s; exec ls",dirs[a]);
                ls = (FILE *) popen(buf,"r");
                if (ls != NULL) {
-                       while(fgets(buf,255,ls)!=NULL) {
+                       while(fgets(buf,sizeof buf,ls)!=NULL) {
                                while (isspace(buf[strlen(buf)-1]))
                                        buf[strlen(buf)-1] = 0;
                                if (!strcasecmp(buf,searchfor)) {