Changeset cd4723c
- Timestamp:
- 2007-04-15T21:59:52Z (18 years ago)
- Branches:
- master
- Children:
- c2fb3809
- Parents:
- 552e641
- Location:
- protocols
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/iq.c
r552e641 rcd4723c 536 536 /* *sigh* */ 537 537 538 imc_log( ic, reply->str );538 imc_log( ic, "%s", reply->str ); 539 539 g_string_free( reply, TRUE ); 540 540 -
protocols/oscar/oscar.c
r552e641 rcd4723c 1264 1264 guint16 chan, nummissed, reason; 1265 1265 aim_userinfo_t *userinfo; 1266 char buf[1024];1267 1266 1268 1267 va_start(ap, fr); … … 1276 1275 case 0: 1277 1276 /* Invalid (0) */ 1278 g_snprintf(buf, 1279 sizeof(buf), 1277 imc_error(sess->aux_data, 1280 1278 nummissed == 1 ? 1281 1279 _("You missed %d message from %s because it was invalid.") : … … 1286 1284 case 1: 1287 1285 /* Message too large */ 1288 g_snprintf(buf, 1289 sizeof(buf), 1286 imc_error(sess->aux_data, 1290 1287 nummissed == 1 ? 1291 1288 _("You missed %d message from %s because it was too large.") : … … 1296 1293 case 2: 1297 1294 /* Rate exceeded */ 1298 g_snprintf(buf, 1299 sizeof(buf), 1295 imc_error(sess->aux_data, 1300 1296 nummissed == 1 ? 1301 1297 _("You missed %d message from %s because the rate limit has been exceeded.") : … … 1306 1302 case 3: 1307 1303 /* Evil Sender */ 1308 g_snprintf(buf, 1309 sizeof(buf), 1304 imc_error(sess->aux_data, 1310 1305 nummissed == 1 ? 1311 1306 _("You missed %d message from %s because it was too evil.") : … … 1316 1311 case 4: 1317 1312 /* Evil Receiver */ 1318 g_snprintf(buf, 1319 sizeof(buf), 1313 imc_error(sess->aux_data, 1320 1314 nummissed == 1 ? 1321 1315 _("You missed %d message from %s because you are too evil.") : … … 1325 1319 break; 1326 1320 default: 1327 g_snprintf(buf, 1328 sizeof(buf), 1321 imc_error(sess->aux_data, 1329 1322 nummissed == 1 ? 1330 1323 _("You missed %d message from %s for unknown reasons.") : … … 1334 1327 break; 1335 1328 } 1336 imc_error(sess->aux_data, buf);1337 1329 1338 1330 return 1; … … 1926 1918 1927 1919 if (strlen(message) > od->rights.maxawaymsglen) { 1928 gchar *errstr; 1929 1930 errstr = g_strdup_printf("Maximum away message length of %d bytes exceeded, truncating", od->rights.maxawaymsglen); 1931 1932 imc_error(ic, errstr); 1933 1934 g_free(errstr); 1920 imc_error(ic, "Maximum away message length of %d bytes exceeded, truncating", od->rights.maxawaymsglen); 1935 1921 } 1936 1922 -
protocols/yahoo/yahoo.c
r552e641 rcd4723c 518 518 { 519 519 char *errstr; 520 char *s;521 520 522 521 yd->logged_in = FALSE; … … 539 538 540 539 if( url && *url ) 541 { 542 s = g_malloc( strlen( "Error %d (%s). See %s for more information." ) + strlen( url ) + strlen( errstr ) + 16 ); 543 sprintf( s, "Error %d (%s). See %s for more information.", succ, errstr, url ); 544 } 540 imc_error( ic, "Error %d (%s). See %s for more information.", succ, errstr, url ); 545 541 else 546 { 547 s = g_malloc( strlen( "Error %d (%s)" ) + strlen( errstr ) + 16 ); 548 sprintf( s, "Error %d (%s)", succ, errstr ); 549 } 550 551 if( yd->logged_in ) 552 imc_error( ic, s ); 553 else 554 imc_error( ic, s ); 555 556 g_free( s ); 542 imc_error( ic, "Error %d (%s)", succ, errstr ); 557 543 558 544 imc_logout( ic );
Note: See TracChangeset
for help on using the changeset viewer.