| 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(¶ms, "oauth_consumer_key", consumer_key); |
114 gg_oauth_parameter_set(¶ms, "oauth_consumer_key", consumer_key); |