Fix a crash

svn path=/trunk/; revision=19786
This commit is contained in:
Matthias Clasen
2008-03-12 17:52:36 +00:00
parent baf4837b25
commit b1f8302299
2 changed files with 6 additions and 1 deletions

View File

@ -1534,7 +1534,7 @@ cups_get_user_options (const char *printer_name,
{
int i;
for (i = 0; i < sizeof (lpoptions_locations); i++)
for (i = 0; i < G_N_ELEMENTS (lpoptions_locations); i++)
{
if (g_path_is_absolute (lpoptions_locations[i]))
{