fixed the format of %REASON% entry when writing it

This commit is contained in:
Aurelien Foret 2005-04-24 11:27:35 +00:00
parent cdd81bf177
commit 5a13de80a1
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ int db_write(pmdb_t *db, pmpkg_t *info, unsigned int inforeq)
fputs("%SIZE%\n", fp);
fprintf(fp, "%ld\n\n", info->size);
fputs("%REASON%\n", fp);
fprintf(fp, "%ld\n\n", info->reason);
fprintf(fp, "%d\n\n", info->reason);
fclose(fp);
}