... | ... |
@@ -4,7 +4,7 @@ |
4 | 4 |
* Posts management |
5 | 5 |
* |
6 | 6 |
* Author: Dario Rodriguez dario@softhome.net |
7 |
- * This progran is licensed under the terms of the Affero GPL v1+ |
|
7 |
+ * This program is licensed under the terms of the Affero GPL v1+ |
|
8 | 8 |
*/ |
9 | 9 |
|
10 | 10 |
#include <stdio.h> |
... | ... |
@@ -35,8 +35,8 @@ post_new(kakumei *ka, char *user, char *title, char *text) |
35 | 35 |
return(-1); |
36 | 36 |
} |
37 | 37 |
last=post_last(ka); |
38 |
- if(last==-1) |
|
39 |
- last=0; /* post number starts on 1 (last+1)*/ |
|
38 |
+ if(last==-1) |
|
39 |
+ last=0; /* post number starts on 1 (last+1)*/ |
|
40 | 40 |
filename[0]='\0'; |
41 | 41 |
for(num=last+1;num<MAXPOSTS;num++) { |
42 | 42 |
snprintf(filename,sizeof(filename),"%s/%04i/%04i.json",POSTSDIR,num/10000,num%10000); |