- Timestamp:
- 2023-04-01T20:29:42Z (20 months ago)
- Branches:
- master
- Children:
- 10425b2
- Parents:
- a4ac9c4
- git-author:
- David Cantrell <dcantrell@…> (01-04-23 20:29:42)
- git-committer:
- GitHub <noreply@…> (01-04-23 20:29:42)
- Location:
- protocols
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/bee_user.c
ra4ac9c4 r552da22 201 201 202 202 /* May be nice to give the UI something to compare against. */ 203 old = g_memdup (bu, sizeof(bee_user_t));203 old = g_memdup2(bu, sizeof(bee_user_t)); 204 204 205 205 /* TODO(wilmer): OPT_AWAY, or just state == NULL ? */ … … 239 239 } 240 240 241 old = g_memdup (bu, sizeof(bee_user_t));241 old = g_memdup2(bu, sizeof(bee_user_t)); 242 242 243 243 bu->status_msg = message && *message ? g_strdup(message) : NULL; -
protocols/jabber/io.c
ra4ac9c4 r552da22 63 63 /* If the queue is empty, allocate a new buffer. */ 64 64 jd->tx_len = len; 65 jd->txq = g_memdup (buf, len);65 jd->txq = g_memdup2(buf, len); 66 66 67 67 /* Try if we can write it immediately so we don't have to do … … 134 134 char *s; 135 135 136 s = g_memdup (jd->txq + st, jd->tx_len - st);136 s = g_memdup2(jd->txq + st, jd->tx_len - st); 137 137 jd->tx_len -= st; 138 138 g_free(jd->txq); -
protocols/jabber/jabber.c
ra4ac9c4 r552da22 803 803 804 804 /* Another one for hipchat, which has completely different logins */ 805 hipchat = g_memdup (ret, sizeof(struct prpl));805 hipchat = g_memdup2(ret, sizeof(struct prpl)); 806 806 hipchat->name = "hipchat"; 807 807 register_protocol(hipchat); -
protocols/purple/ft-direct.c
ra4ac9c4 r552da22 71 71 struct prpl_xfer_data *px = ft->data; 72 72 73 px->buf = g_memdup (buffer, len);73 px->buf = g_memdup2(buffer, len); 74 74 px->buf_len = len; 75 75 -
protocols/purple/purple.c
ra4ac9c4 r552da22 1937 1937 } 1938 1938 1939 ret = g_memdup (&funcs, sizeof(funcs));1939 ret = g_memdup2(&funcs, sizeof(funcs)); 1940 1940 ret->name = ret->data = prot->info->id; 1941 1941 if (strncmp(ret->name, "prpl-", 5) == 0) { -
protocols/twitter/twitter.c
ra4ac9c4 r552da22 1117 1117 1118 1118 /* And an identi.ca variant: */ 1119 ret = g_memdup (ret, sizeof(struct prpl));1119 ret = g_memdup2(ret, sizeof(struct prpl)); 1120 1120 ret->name = "identica"; 1121 1121 ret->options = PRPL_OPT_NOOTR; -
protocols/twitter/twitter_lib.c
ra4ac9c4 r552da22 647 647 } 648 648 } else if (text_value && text_value->type == json_string) { 649 txs->text = g_memdup (text_value->u.string.ptr, text_value->u.string.length + 1);649 txs->text = g_memdup2(text_value->u.string.ptr, text_value->u.string.length + 1); 650 650 strip_html(txs->text); 651 651 expand_entities(&txs->text, node, extended_node); … … 674 674 JSON_O_FOREACH(node, k, v) { 675 675 if (strcmp("text", k) == 0 && v->type == json_string) { 676 txs->text = g_memdup (v->u.string.ptr, v->u.string.length + 1);676 txs->text = g_memdup2(v->u.string.ptr, v->u.string.length + 1); 677 677 strip_html(txs->text); 678 678 } else if (strcmp("created_at", k) == 0 && v->type == json_string) {
Note: See TracChangeset
for help on using the changeset viewer.