Lines Matching refs:buf
55 const char *buf = "Error: out of memory\n";
56 int written, count = strlen(buf);
58 written = write(STDERR_FILENO, buf, count);
62 buf += written;
122 char buf[MAX_STRING_LEN + 1];
130 if (apr_file_read_full(file_stdin, buf, sizeof(buf) - 1,
132 || nread == sizeof(buf) - 1) {
135 buf[nread] = '\0';
136 if (nread >= 1 && buf[nread-1] == '\n') {
137 buf[nread-1] = '\0';
138 if (nread >= 2 && buf[nread-2] == '\r')
139 buf[nread-2] = '\0';
142 ctx->passwd = apr_pstrdup(ctx->pool, buf);
145 apr_size_t bufsize = sizeof(buf);
146 if (apr_password_get("Enter password: ", buf, &bufsize) != 0)
148 ctx->passwd = apr_pstrdup(ctx->pool, buf);
151 apr_size_t bufsize = sizeof(buf);
152 if (apr_password_get("New password: ", buf, &bufsize) != 0)
154 ctx->passwd = apr_pstrdup(ctx->pool, buf);
155 bufsize = sizeof(buf);
156 buf[0] = '\0';
157 apr_password_get("Re-type new password: ", buf, &bufsize);
158 if (strcmp(ctx->passwd, buf) != 0) {
161 memset(buf, '\0', sizeof(buf));
165 memset(buf, '\0', sizeof(buf));