libpurple/protocols/gg/oauth/oauth.c

changeset 40094
8e6d91e4dd8f
parent 40021
6b1b05adda03
child 40439
e9838d634d5e
equal deleted inserted replaced
40093:dd7183cf0a71 40094:8e6d91e4dd8f
102 else { 102 else {
103 strncpy(nonce, gg_oauth_static_nonce, sizeof(nonce) - 1); 103 strncpy(nonce, gg_oauth_static_nonce, sizeof(nonce) - 1);
104 nonce[sizeof(nonce) - 1] = 0; 104 nonce[sizeof(nonce) - 1] = 0;
105 } 105 }
106 106
107 if (gg_oauth_static_timestamp == NULL) 107 if (gg_oauth_static_timestamp == NULL) {
108 snprintf(timestamp, sizeof(timestamp), "%ld", time(NULL)); 108 g_snprintf(timestamp, sizeof(timestamp), "%ld", time(NULL));
109 else { 109 } else {
110 strncpy(timestamp, gg_oauth_static_timestamp, sizeof(timestamp) - 1); 110 strncpy(timestamp, gg_oauth_static_timestamp, sizeof(timestamp) - 1);
111 timestamp[sizeof(timestamp) - 1] = 0; 111 timestamp[sizeof(timestamp) - 1] = 0;
112 } 112 }
113 113
114 gg_oauth_parameter_set(&params, "oauth_consumer_key", consumer_key); 114 gg_oauth_parameter_set(&params, "oauth_consumer_key", consumer_key);

mercurial