*/
RepoData *rd = curr->data;
gchar buffer[BUFFER_SIZE];
- snprintf(buffer, sizeof(buffer),
+ g_snprintf(buffer, sizeof(buffer),
"%s\t%s\t%s\t%d\t%d\t%d\t%d",
rd->name,
rd->url,
/* Save Colors. */
for (i = 0; i < COLORABLE_ENUM_COUNT; i++) {
- snprintf(buffer, sizeof(buffer), "#%02x%02x%02x",
+ g_snprintf(buffer, sizeof(buffer), "#%02x%02x%02x",
_color[i].red >> 8, _color[i].green >> 8, _color[i].blue >> 8);
gconf_client_set_string(gconf_client, COLORABLE_GCONF[i], buffer, NULL);
}
guint nRow, nColumn;
gchar sql[64];
-snprintf(sql, sizeof(sql),"select count(*) from %s", table);
+g_snprintf(sql, sizeof(sql),"select count(*) from %s", table);
if (SQLITE_OK != sqlite3_get_table(db, sql, &pszResult, &nRow, &nColumn, NULL))
return FALSE;
handle, (string), strlen((string)), &size))) \
{ \
gchar buffer[BUFFER_SIZE]; \
- snprintf(buffer, sizeof(buffer), \
+ g_snprintf(buffer, sizeof(buffer), \
"%s:\n%s\n%s", _("Error while writing to file"), \
_("File is incomplete."), \
gnome_vfs_result_to_string(vfs_result)); \
struct tm time2;
time1 = time(NULL);
localtime_r(&time1, &time2);
-snprintf(XML_TZONE, sizeof(XML_TZONE), "%+03ld:%02ld",
+g_snprintf(XML_TZONE, sizeof(XML_TZONE), "%+03ld:%02ld",
(time2.tm_gmtoff / 60 / 60), (time2.tm_gmtoff / 60) % 60);
}
gchar strlon[32];
g_ascii_formatd(strlat, 32, "%.06f", _gps.lat);
g_ascii_formatd(strlon, 32, "%.06f", _gps.lon);
- snprintf(buffer, sizeof(buffer), "%s, %s", strlat, strlon);
+ g_snprintf(buffer, sizeof(buffer), "%s, %s", strlat, strlon);
gtk_entry_set_text(GTK_ENTRY(oti->txt_from), buffer);
} else if (toggle == oti->rad_use_route) {
gchar buffer[80];
unit2latlon(p->unitx, p->unity, lat, lon);
g_ascii_formatd(strlat, 32, "%.06f", lat);
g_ascii_formatd(strlon, 32, "%.06f", lon);
- snprintf(buffer, sizeof(buffer), "%s, %s", strlat, strlon);
+ g_snprintf(buffer, sizeof(buffer), "%s, %s", strlat, strlon);
gtk_entry_set_text(GTK_ENTRY(oti->txt_from), buffer);
}
gtk_widget_set_sensitive(oti->txt_from, toggle == oti->rad_use_text);
from_escaped = gnome_vfs_escape_string(from);
to_escaped = gnome_vfs_escape_string(to);
- snprintf(buffer, sizeof(buffer), source_url, from_escaped, to_escaped);
+ g_snprintf(buffer, sizeof(buffer), source_url, from_escaped, to_escaped);
g_free(from_escaped);
g_free(to_escaped);