search for: p_strdup_until

Displaying 4 results from an estimated 4 matches for "p_strdup_until".

Did you mean: t_strdup_until
2007 Jan 05
1
Crash in rc15
..._panic_handler ( fmt=0x9ae80 "file %s: line %d (%s): assertion failed: (%s)", args=0xffbff598) at failures.c:382 No locals. #4 0x00078190 in i_panic ( format=0x9ae80 "file %s: line %d (%s): assertion failed: (%s)") at failures.c:180 No locals. #5 0x000867d4 in p_strdup_until (pool=0xac54c, start=0xb8128, end=0x0) at strfuncs.c:151 size = 4294213336 mem = 0xac54c "" __PRETTY_FUNCTION__ = "p_strdup_until" #6 0x00035280 in mbox_get_index_dir (storage=0xb7c08, name=0xb8128 "~-~-~") at mbox-storage.c:448 p = 0x0 #7 0x00035cac in m...
2004 Jul 31
1
Patch: fix $-terminated MCF
...================================================================= RCS file: /home/cvs/dovecot/src/lib/strfuncs.c,v retrieving revision 1.41 diff -u -p -r1.41 strfuncs.c --- src/lib/strfuncs.c 18 Jul 2004 01:44:59 -0000 1.41 +++ src/lib/strfuncs.c 31 Jul 2004 08:43:35 -0000 @@ -154,6 +154,7 @@ char *p_strdup_until(pool_t pool, const mem = p_malloc(pool, size + 1); memcpy(mem, start, size); + mem[size] = '\0'; return mem; } Noticed while testing $-terminated modular crypt strings, because I didn't (and still don't) understand the reason for line 65 of password-scheme.c; ... /* sto...
2006 Dec 04
3
assertion failed
Hi, Would anyone know what these errors mean? Running DoveCot RC15 on RedHat ES 4 Dec 1 17:30:53 serv-01 dovecot: pop3-login: file client.c: line 423 (client_unref): assertion failed: (client->destroyed) Dec 1 17:31:21 serv-01 dovecot: pop3-login: file client.c: line 423 (client_unref): assertion failed: (client->destroyed) Dec 1 17:31:25 serv-01 dovecot: pop3-login: file client.c:
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...S_FILENAME" version 1") == 0) + continue; + + /* key:mailbox, both nonempty */ + sep = strchr(line, ':'); + if (sep == NULL || sep == line || sep[1] == '\0') + continue; + + /* keys[mailbox] = key */ + hash_table_insert(keys, + p_strdup(pool, sep + 1), + p_strdup_until(pool, line, sep)); + } + i_stream_destroy(&is); + + return keys; +} + +// write the access keys to the file +static bool urlauth_keys_write(int fd, struct hash_table *keys) +{ + struct ostream *os; + struct hash_iterate_context *iter; + void *key, *value; + + os = o_stream_create_fd_file(fd, 0,...