taka-tuos / nanotodon

CLI mastodon client
MIT License
37 stars 6 forks source link

Fix printf format strings #6

Closed tsutsui closed 4 years ago

tsutsui commented 5 years ago

以下の警告の修正:

nanotodon.c: In function 'do_oauth':
nanotodon.c:512:18: warning: unknown conversion type character 'w' in format [-Wformat=]
  sprintf(fields, "client_id=%s&client_secret=%s&grant_type=authorization_code&code=%s&scope=read%20write%20follow", ck, cs, code);
                  ^
nanotodon.c:512:18: warning: format '%f' expects a matching 'double' argument [-Wformat=]
nanotodon.c:512:18: warning: unknown conversion type character 'w' in format [-Wformat=]
nanotodon.c:512:18: warning: format '%f' expects a matching 'double' argument [-Wformat=]

この認証URLが実際に使われているのかどうかは確認してません。