Mercurial > noffle
comparison src/request.c @ 249:0340b9c17edc noffle
[svn] *** empty log message ***
author | mirkol |
---|---|
date | Tue, 14 May 2002 15:25:45 +0100 |
parents | 24d4cd032da5 |
children | 5eece4dfd945 |
comparison
equal
deleted
inserted
replaced
248:cd022deb8390 | 249:0340b9c17edc |
---|---|
1 /* | 1 /* |
2 request.c | 2 request.c |
3 | 3 |
4 Collection of articles that are marked for download. | 4 Collection of articles that are marked for download. |
5 | 5 |
6 $Id: request.c 316 2001-10-31 11:44:53Z bears $ | 6 $Id: request.c 381 2002-05-14 14:25:45Z mirkol $ |
7 */ | 7 */ |
8 | 8 |
9 #if HAVE_CONFIG_H | 9 #if HAVE_CONFIG_H |
10 #include <config.h> | 10 #include <config.h> |
11 #endif | 11 #endif |
188 | 188 |
189 msgid = strcpy(malloc(strlen(msgId)+1), msgId); | 189 msgid = strcpy(malloc(strlen(msgId)+1), msgId); |
190 | 190 |
191 if (rs->reql_length >= rs->reql_capacity) { | 191 if (rs->reql_length >= rs->reql_capacity) { |
192 int c1 = rs->reql_capacity*2 + 10; | 192 int c1 = rs->reql_capacity*2 + 10; |
193 rs->reql = (char**) realloc(rs->reql, c1*sizeof(char*)); | 193 if ( ! ( rs->reql = (char**) realloc(rs->reql, c1*sizeof(char*) ) ) ) |
194 { | |
195 Log_err( "Could not realloc requests." ); | |
196 exit( EXIT_FAILURE ); | |
197 } | |
194 rs->reql_capacity = c1; | 198 rs->reql_capacity = c1; |
195 } | 199 } |
196 | 200 |
197 *(rs->reql + rs->reql_length++) = msgid; | 201 *(rs->reql + rs->reql_length++) = msgid; |
198 rs->dirty = TRUE; | 202 rs->dirty = TRUE; |