Skip to content

Commit

Permalink
foreign/libsdbfs: fix comparison between signed and unsigned values
Browse files Browse the repository at this point in the history
  • Loading branch information
jvff committed Jun 26, 2017
1 parent 9e5a8e8 commit b6b3e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foreign/libsdbfs/tools/gensdbfs.c
Expand Up @@ -46,7 +46,7 @@ static inline unsigned long SDB_ALIGN(unsigned long x)
static void __fill_product(struct sdb_product *p, char *name, time_t t,
int record_type)
{
int len = strlen(name);
size_t len = strlen(name);

if (len > sizeof(p->name)) {
fprintf(stderr, "%s: truncating filename \"%s\"\n",
Expand Down

0 comments on commit b6b3e03

Please sign in to comment.