Skip to content

Commit

Permalink
Fix broken remove_common_prefix(), fCamera didn't display model as it…
Browse files Browse the repository at this point in the history
… should.
  • Loading branch information
Laurent Monin committed Apr 10, 2008
1 parent c265a3b commit c3a31cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/exif-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ static gchar *remove_common_prefix(gchar *s, gchar *t)

if (!s || !t) return t;

for (i = 0; s[i] == t[i]; i++)
for (i = 0; s[i] && t[i] && s[i] == t[i]; i++)
;
if (!i)
return t;
if (s[i]==' ' || s[i]==0)
--i;
if (s[i]==' ' || !s[i])
{
while (t[i] == ' ')
i++;
Expand Down

0 comments on commit c3a31cc

Please sign in to comment.