]> code.citadel.org Git - citadel.git/blobdiff - citadel/client_passwords.c
* The size constant "256" which shows up everywhere as a buffer size has now
[citadel.git] / citadel / client_passwords.c
index 0f13555d58a2ae923d4fecf18c302ddc269f489a..a70bcc4faf41de7e4b1390b1e1f497da1c694aa0 100644 (file)
@@ -16,6 +16,7 @@
 #include <sys/stat.h>
 #include <limits.h>
 #include <stdio.h>
+#include "citadel.h"
 #include "tools.h"
 #include "commands.h"
 
@@ -42,9 +43,9 @@ void get_stored_password(
 
        char pwfile[PATH_MAX];
        FILE *fp;
-       char buf[256];
-       char buf64[256];
-       char hostbuf[256], portbuf[256], ubuf[256], pbuf[256];
+       char buf[SIZ];
+       char buf64[SIZ];
+       char hostbuf[SIZ], portbuf[SIZ], ubuf[SIZ], pbuf[SIZ];
 
        strcpy(username, "");
        strcpy(password, "");
@@ -83,9 +84,9 @@ void set_stored_password(
 
        char pwfile[PATH_MAX];
        FILE *fp, *oldfp;
-       char buf[256];
-       char buf64[256];
-       char hostbuf[256], portbuf[256], ubuf[256], pbuf[256];
+       char buf[SIZ];
+       char buf64[SIZ];
+       char hostbuf[SIZ], portbuf[SIZ], ubuf[SIZ], pbuf[SIZ];
 
        determine_pwfilename(pwfile);
        if (strlen(pwfile)==0) return;