diff options
Diffstat (limited to 'src/backen.c')
-rw-r--r-- | src/backen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backen.c b/src/backen.c index d97f743..434f3d5 100644 --- a/src/backen.c +++ b/src/backen.c | |||
@@ -56,7 +56,7 @@ int main( int argc, char **argv ) { | |||
56 | printf( "%s\t%s\t", streets[sid], end+1 ); | 56 | printf( "%s\t%s\t", streets[sid], end+1 ); |
57 | end = lookup + 6 + sprintf( lookup+6, "%s\t%s", streets[sid], end + 1 ); | 57 | end = lookup + 6 + sprintf( lookup+6, "%s\t%s", streets[sid], end + 1 ); |
58 | while( isalpha( (int)end[-1] )) *--end = 0; | 58 | while( isalpha( (int)end[-1] )) *--end = 0; |
59 | *++end = '\t'; *++end = 0; | 59 | *end++ = '\t'; *end = 0; |
60 | } else { | 60 | } else { |
61 | printf( "\t\t" ); lookup[6] = lookup[7] = '\t'; lookup[8] = 0; | 61 | printf( "\t\t" ); lookup[6] = lookup[7] = '\t'; lookup[8] = 0; |
62 | } | 62 | } |
@@ -73,7 +73,7 @@ int main( int argc, char **argv ) { | |||
73 | break; | 73 | break; |
74 | case 7: | 74 | case 7: |
75 | memcpy( lookup, ".....\t", 6 ); | 75 | memcpy( lookup, ".....\t", 6 ); |
76 | sprintf( lookup, "%s", maps[k]->addr+mapoffs[k] ); | 76 | snprintf( lookup, 5, "%s", maps[k]->addr+mapoffs[k] ); |
77 | lookup[5] = '\t'; | 77 | lookup[5] = '\t'; |
78 | default: | 78 | default: |
79 | printf( "%s\t", maps[k]->addr+mapoffs[k] ); | 79 | printf( "%s\t", maps[k]->addr+mapoffs[k] ); |