1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
diff -Nur src/logfile.old/oh1aa.c src/logfile/oh1aa.c
--- src/logfile.old/oh1aa.c 2010-10-04 15:03:52.000000000 +0000
+++ src/logfile/oh1aa.c 2010-10-04 15:05:13.000000000 +0000
@@ -111,25 +111,25 @@
//0502201751OK2BMA 59 59 28 MHzSSB pavel 0
/* insert a space between date and time */
- memmove (buffer+7, buffer+6, MAXROWLEN);
+ memmove (buffer+7, buffer+6, MAXROWLEN-7);
buffer[6] = ' ';
/* insert a space between time and call */
- memmove (buffer+12, buffer+11, MAXROWLEN);
+ memmove (buffer+12, buffer+11, MAXROWLEN-12);
buffer[11] = ' ';
/* insert a space between call and myrst */
- memmove (buffer+24, buffer+23, MAXROWLEN);
+ memmove (buffer+24, buffer+23, MAXROWLEN-24);
buffer[24] = ' ';
/* insert a space between myrst and rst */
- memmove (buffer+28, buffer+27, MAXROWLEN);
+ memmove (buffer+28, buffer+27, MAXROWLEN-28);
buffer[28] = ' ';
/* insert a space between rst and band */
- memmove (buffer+32, buffer+31, MAXROWLEN);
+ memmove (buffer+32, buffer+31, MAXROWLEN-32);
buffer[32] = ' ';
/* insert a space between band and mode */
- memmove (buffer+40, buffer+39, MAXROWLEN);
+ memmove (buffer+40, buffer+39, MAXROWLEN-40);
buffer[40] = ' ';
/* insert a space between mode and remarks */
- memmove (buffer+45, buffer+44, MAXROWLEN);
+ memmove (buffer+45, buffer+44, MAXROWLEN-45);
buffer[45] = ' ';
for (i = 0; i < oh1aa_field_nr; i++)
diff -Nur src/logfile.old/trlog.c src/logfile/trlog.c
--- src/logfile.old/trlog.c 2010-10-04 15:03:52.000000000 +0000
+++ src/logfile/trlog.c 2010-10-04 15:04:21.000000000 +0000
@@ -195,7 +195,7 @@
continue;
/* insert a space between band and mode */
- memmove (buffer+4, buffer+3, MAXROWLEN);
+ memmove (buffer+4, buffer+3, MAXROWLEN-4);
buffer[3] = ' ';
for (i = 0; i < trlog_field_nr - 1; i++)
|